def test_md5_hash_setter(self):
    BLOB_NAME = 'blob-name'
    MD5_HASH = 'DEADBEEF'
    bucket = _Bucket()
    blob = self._make_one(BLOB_NAME, bucket=bucket)
    self.assertIsNone(blob.md5_hash)
    blob.md5_hash = MD5_HASH
    self.assertEqual(blob.md5_hash, MD5_HASH)
def test_md5_hash_setter(self):
    BLOB_NAME = 'blob-name'
    MD5_HASH = 'DEADBEEF'
    bucket = _Bucket()
    blob = self._make_one(BLOB_NAME, bucket=bucket)
    self.assertIsNone(blob.md5_hash)
    blob.md5_hash = MD5_HASH
    self.assertEqual(blob.md5_hash, MD5_HASH)