

def test_stat_object_wildcard(self):
    bucket_uri = self.CreateBucket()
    object1_uri = self.CreateObject(bucket_uri=bucket_uri, object_name='foo1', contents='z')
    object2_uri = self.CreateObject(bucket_uri=bucket_uri, object_name='foo2', contents='z')
    stat_string = (suri(bucket_uri)[:(- 2)] + '*')

    @Retry(AssertionError, tries=3, timeout_secs=1)
    def _Check1():
        stdout = self.RunGsUtil(['stat', stat_string], return_stdout=True)
        self.assertIn(suri(object1_uri), stdout)
        self.assertIn(suri(object2_uri), stdout)
    _Check1()

dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/tests/test_stat.py TestStat.test_stat_object_wildcard/VarMisuse@61/100 `object1_uri`->`bucket_uri`