def test_content_encoding_setter(self):
    BLOB_NAME = 'blob-name'
    CONTENT_ENCODING = 'gzip'
    bucket = _Bucket()
    blob = self._make_one(BLOB_NAME, bucket=bucket)
    self.assertIsNone(blob.content_encoding)
    blob.content_encoding = CONTENT_ENCODING
    self.assertEqual(blob.content_encoding, CONTENT_ENCODING)
def test_content_encoding_setter(self):
    BLOB_NAME = 'blob-name'
    CONTENT_ENCODING = 'gzip'
    bucket = _Bucket()
    blob = self._make_one(BLOB_NAME, bucket=bucket)
    self.assertIsNone(blob.content_encoding)
    blob.content_encoding = CONTENT_ENCODING
    self.assertEqual(blob.content_encoding, CONTENT_ENCODING)