def test_download_blobs(self):
    files_to_download = list()
    file1_content = 'content of the test file1'
    file2_content = 'content of the test file2'
    self.storage.storage_driver.upload_blob_from_string('test_download_blobs1/file1.txt', file1_content)
    files_to_download.append('test_download_blobs1/file1.txt')
    self.storage.storage_driver.upload_blob_from_string('test_download_blobs2/file2.txt', file2_content)
    files_to_download.append('test_download_blobs2/file2.txt')
    self.assertEqual(len(os.listdir(self.medusa_bucket_dir)), 2)
    self.storage.storage_driver.download_blobs(files_to_download, self.local_storage_dir)
    self.assertEqual(len(os.listdir(self.local_storage_dir)), 2)
def test_download_blobs(self):
    files_to_download = list()
    file1_content = 'content of the test file1'
    file2_content = 'content of the test file2'
    self.storage.storage_driver.upload_blob_from_string('test_download_blobs1/file1.txt', file1_content)
    files_to_download.append('test_download_blobs1/file1.txt')
    self.storage.storage_driver.upload_blob_from_string('test_download_blobs2/file2.txt', file2_content)
    files_to_download.append('test_download_blobs2/file2.txt')
    self.assertEqual(len(os.listdir(self.medusa_bucket_dir)), 2)
    self.storage.storage_driver.download_blobs(files_to_download, self.local_storage_dir)
    self.assertEqual(len(os.listdir(self.local_storage_dir)), 2)