def test_metadata_setter(self):
    BLOB_NAME = 'blob-name'
    METADATA = {'foo': 'Foo'}
    bucket = _Bucket()
    blob = self._make_one(BLOB_NAME, bucket=bucket)
    self.assertIsNone(blob.metadata)
    blob.metadata = METADATA
    self.assertEqual(blob.metadata, METADATA)
def test_metadata_setter(self):
    BLOB_NAME = 'blob-name'
    METADATA = {'foo': 'Foo'}
    bucket = _Bucket()
    blob = self._make_one(BLOB_NAME, bucket=bucket)
    self.assertIsNone(blob.metadata)
    blob.metadata = METADATA
    self.assertEqual(blob.metadata, METADATA)