@@ -193,7 +193,7 @@ def test_list_none_inventory(self):
193193
194194 def test_bucket_inventory_filter (self ):
195195 auth = oss2 .Auth (OSS_ID , OSS_SECRET )
196- dest_bucket_name = OSS_BUCKET + "-test-inventory-dest-filter"
196+ dest_bucket_name = self . OSS_BUCKET + "-test-inventory-dest-filter"
197197 dest_bucket = oss2 .Bucket (auth , self .endpoint , dest_bucket_name )
198198 dest_bucket .create_bucket ()
199199
@@ -226,11 +226,11 @@ def test_bucket_inventory_filter(self):
226226 self .assertEquals (INVENTORY_FREQUENCY_WEEKLY , result .inventory_schedule .frequency )
227227 self .assertEquals (INVENTORY_INCLUDED_OBJECT_VERSIONS_ALL , result .included_object_versions )
228228 self .assertEquals ("obj-prefix" , result .inventory_filter .prefix )
229- self .assertEquals (1637883649 , result .inventory_filter .last_modify_begin_time_stamp )
230- self .assertEquals (1638347592 , result .inventory_filter .last_modify_end_time_stamp )
231- self .assertEquals (1024 , result .inventory_filter .lower_size_bound )
232- self .assertEquals (1048576 , result .inventory_filter .upper_size_bound )
233- self .assertEquals ("Standard,IA " , result .inventory_filter .storage_class )
229+ self .assertEquals (" 1637883649" , result .inventory_filter .last_modify_begin_time_stamp )
230+ self .assertEquals (" 1638347592" , result .inventory_filter .last_modify_end_time_stamp )
231+ self .assertEquals (" 1024" , result .inventory_filter .lower_size_bound )
232+ self .assertEquals (" 1048576" , result .inventory_filter .upper_size_bound )
233+ self .assertEquals ("IA,Standard " , result .inventory_filter .storage_class )
234234 self .assertEquals (len (optional_fields ), len (result .optional_fields ))
235235 ret_bucket_destin = result .inventory_destination .bucket_destination
236236 self .assertEquals (OSS_INVENTORY_BUCKET_DESTINATION_ACCOUNT , ret_bucket_destin .account_id )
@@ -243,11 +243,11 @@ def test_bucket_inventory_filter(self):
243243
244244 result = self .bucket1 .list_bucket_inventory_configurations ()
245245 self .assertEquals ("obj-prefix" , result .inventory_configurations [0 ].inventory_filter .prefix )
246- self .assertEquals (1637883649 , result .inventory_configurations [0 ].inventory_filter .last_modify_begin_time_stamp )
247- self .assertEquals (1638347592 , result .inventory_configurations [0 ].inventory_filter .last_modify_end_time_stamp )
248- self .assertEquals (1024 , result .inventory_configurations [0 ].inventory_filter .lower_size_bound )
249- self .assertEquals (1048576 , result .inventory_configurations [0 ].inventory_filter .upper_size_bound )
250- self .assertEquals ("Standard,IA " , result .inventory_configurations [0 ].inventory_filter .storage_class )
246+ self .assertEquals (" 1637883649" , result .inventory_configurations [0 ].inventory_filter .last_modify_begin_time_stamp )
247+ self .assertEquals (" 1638347592" , result .inventory_configurations [0 ].inventory_filter .last_modify_end_time_stamp )
248+ self .assertEquals (" 1024" , result .inventory_configurations [0 ].inventory_filter .lower_size_bound )
249+ self .assertEquals (" 1048576" , result .inventory_configurations [0 ].inventory_filter .upper_size_bound )
250+ self .assertEquals ("IA,Standard " , result .inventory_configurations [0 ].inventory_filter .storage_class )
251251
252252 self .bucket1 .delete_bucket_inventory_configuration (inventory_id )
253253 dest_bucket .delete_bucket ()
0 commit comments