def test_set_lifecycle_multi_buckets(self):
    bucket1_uri = self.CreateBucket()
    bucket2_uri = self.CreateBucket()
    fpath = self.CreateTempFile(contents=self.lifecycle_doc)
    self.RunGsUtil(
        ['lifecycle', 'set', fpath, suri(bucket1_uri), suri(bucket2_uri)])
    stdout = self.RunGsUtil(['lifecycle', 'get', suri(bucket1_uri)],
                            return_stdout=True)
    self.assertEqual(json.loads(stdout), self.lifecycle_json_obj)
    stdout = self.RunGsUtil(['lifecycle', 'get', suri(bucket2_uri)],
                            return_stdout=True)
    self.assertEqual(json.loads(stdout), self.lifecycle_json_obj)
Preview the file if it exists, otherwise show the previous view (aka the "calling_view")
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/tests/test_lifecycle.py/TestSetLifecycle.test_set_lifecycle_multi_buckets--crossover with--dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py/FileHistory.preview_history