def test_content_type_setter(self):
    BLOB_NAME = 'blob-name'
    CONTENT_TYPE = 'image/jpeg'
    bucket = _Bucket()
    blob = self._make_one(BLOB_NAME, bucket=bucket)
    self.assertIsNone(blob.content_type)
    blob.content_type = CONTENT_TYPE
    self.assertEqual(blob.content_type, CONTENT_TYPE)
def test_content_type_setter(self):
    BLOB_NAME = 'blob-name'
    CONTENT_TYPE = 'image/jpeg'
    bucket = _Bucket()
    blob = self._make_one(BLOB_NAME, bucket=bucket)
    self.assertIsNone(blob.content_type)
    blob.content_type = CONTENT_TYPE
    self.assertEqual(blob.content_type, CONTENT_TYPE)