@@ -554,20 +554,24 @@ def setUpClass(cls):
554554 # Make sure bucket empty before beginning.
555555 _empty_bucket (cls .bucket )
556556
557+ cls .suite_blobs_to_delete = []
557558 simple_path = cls .FILES ['simple' ]['path' ]
558- blob = storage .Blob (cls .FILENAMES [0 ], bucket = cls .bucket )
559- blob .upload_from_filename (simple_path )
560- cls .suite_blobs_to_delete = [blob ]
561- for filename in cls .FILENAMES [1 :]:
562- new_blob = retry_bad_copy (cls .bucket .copy_blob )(
563- blob , cls .bucket , filename )
564- cls .suite_blobs_to_delete .append (new_blob )
559+ for filename in cls .FILENAMES :
560+ blob = storage .Blob (filename , bucket = cls .bucket )
561+ blob .upload_from_filename (simple_path )
562+ cls .suite_blobs_to_delete .append (blob )
565563
566564 @classmethod
567565 def tearDownClass (cls ):
568566 for blob in cls .suite_blobs_to_delete :
569567 blob .delete ()
570568
569+ @RetryErrors (unittest .TestCase .failureException )
570+ def test_blob_get_w_delimiter (self ):
571+ for filename in self .FILENAMES :
572+ blob = self .bucket .blob (filename )
573+ self .assertTrue (blob .exists (), filename )
574+
571575 @RetryErrors (unittest .TestCase .failureException )
572576 def test_root_level_w_delimiter (self ):
573577 iterator = self .bucket .list_blobs (delimiter = '/' )
0 commit comments