def test_ctor_wo_encryption_key(self):
    BLOB_NAME = 'blob-name'
    bucket = _Bucket()
    properties = {'key': 'value'}
    blob = self._make_one(BLOB_NAME, bucket=bucket, properties=properties)
    self.assertIs(blob.bucket, bucket)
    self.assertEqual(blob.name, BLOB_NAME)
    self.assertEqual(blob._properties, properties)
    self.assertFalse(blob._acl.loaded)
    self.assertIs(blob._acl.blob, blob)
    self.assertEqual(blob._encryption_key, None)
def test_ctor_wo_encryption_key(self):
    BLOB_NAME = 'blob-name'
    bucket = _Bucket()
    properties = {'key': 'value'}
    blob = self._make_one(BLOB_NAME, bucket=bucket, properties=properties)
    self.assertIs(blob.bucket, bucket)
    self.assertEqual(blob.name, BLOB_NAME)
    self.assertEqual(blob._properties, properties)
    self.assertFalse(blob._acl.loaded)
    self.assertIs(blob._acl.blob, blob)
    self.assertEqual(blob._encryption_key, None)