We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee54c43 commit 1c67795Copy full SHA for 1c67795
storage/tests/system.py
@@ -508,6 +508,15 @@ def test_list_files(self):
508
self.assertEqual(sorted(blob.name for blob in all_blobs),
509
sorted(self.FILENAMES))
510
511
+ @unittest.skipUnless(USER_PROJECT, 'USER_PROJECT not set in environment.')
512
+ @RetryErrors(unittest.TestCase.failureException)
513
+ def test_list_files_with_user_project(self):
514
+ with_user_project = Config.CLIENT.bucket(
515
+ self.bucket.name, user_project=USER_PROJECT)
516
+ all_blobs = list(with_user_project.list_blobs())
517
+ self.assertEqual(sorted(blob.name for blob in all_blobs),
518
+ sorted(self.FILENAMES))
519
+
520
@RetryErrors(unittest.TestCase.failureException)
521
def test_paginate_files(self):
522
truncation_size = 1
0 commit comments