@@ -3987,6 +3987,7 @@ def test_update_storage_class_w_generation_match(self):
39873987 if_generation_match = GENERATION_NUMBER ,
39883988 if_source_generation_match = SOURCE_GENERATION_NUMBER ,
39893989 )
3990+
39903991 self .assertEqual (blob .storage_class , "NEARLINE" )
39913992
39923993 kw = connection ._requested
@@ -4236,6 +4237,7 @@ def test_metadata_setter(self):
42364237 self .assertIsNone (blob .metadata )
42374238 blob .metadata = METADATA
42384239 self .assertEqual (blob .metadata , METADATA )
4240+ self .assertIn ("metadata" , blob ._changes )
42394241
42404242 def test_metadata_setter_w_nan (self ):
42414243 BLOB_NAME = "blob-name"
@@ -4246,6 +4248,7 @@ def test_metadata_setter_w_nan(self):
42464248 blob .metadata = METADATA
42474249 value = blob .metadata ["foo" ]
42484250 self .assertIsInstance (value , str )
4251+ self .assertIn ("metadata" , blob ._changes )
42494252
42504253 def test_metageneration (self ):
42514254 BUCKET = object ()
@@ -4444,6 +4447,7 @@ def test_custom_time_setter(self):
44444447 self .assertIsNone (blob .custom_time )
44454448 blob .custom_time = TIMESTAMP
44464449 self .assertEqual (blob .custom_time , TIMESTAMP )
4450+ self .assertIn ("customTime" , blob ._changes )
44474451
44484452 def test_custom_time_setter_none_value (self ):
44494453 from google .cloud ._helpers import _RFC3339_MICROS
0 commit comments