def test_owner(self):
    BLOB_NAME = 'blob-name'
    bucket = _Bucket()
    OWNER = {'entity': 'project-owner-12345', 'entityId': '23456'}
    properties = {'owner': OWNER}
    blob = self._make_one(BLOB_NAME, bucket=bucket, properties=properties)
    owner = blob.owner
    self.assertEqual(owner['entity'], 'project-owner-12345')
    self.assertEqual(owner['entityId'], '23456')
def test_owner(self):
    BLOB_NAME = 'blob-name'
    bucket = _Bucket()
    OWNER = {'entity': 'project-owner-12345', 'entityId': '23456'}
    properties = {'owner': OWNER}
    blob = self._make_one(BLOB_NAME, bucket=bucket, properties=properties)
    owner = blob.owner
    self.assertEqual(owner['entity'], 'project-owner-12345')
    self.assertEqual(owner['entityId'], '23456')