

def test_stat_output(self):
    'Tests stat output of a single object.'
    object_uri = self.CreateObject(contents='z')
    stdout = self.RunGsUtil(['stat', suri(object_uri)], return_stdout=True)
    self.assertIn(object_uri.uri, stdout)
    self.assertIn('Creation time:', stdout)
    if (self.default_provider == 'gs'):
        if (self.test_api == ApiSelector.XML):
            self.assertIn('Cache-Control:', self)
            self.assertIn('Content-Encoding:', stdout)
        self.assertIn('Generation:', stdout)
        self.assertIn('Metageneration:', stdout)
        self.assertIn('Hash (crc32c):', stdout)
        self.assertIn('Hash (md5):', stdout)
    self.assertIn('Content-Length:', stdout)
    self.assertIn('Content-Type:', stdout)
    self.assertIn('ETag:', stdout)

dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/tests/test_stat.py TestStat.test_stat_output/VarMisuse@93/143 `stdout`->`self`