MCPcopy Index your code
hub / github.com/python/cpython / test_list_command_verbose

Method test_list_command_verbose

Lib/test/test_tarfile.py:2908–2917  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2906 self.assertEqual(out, expected)
2907
2908 def test_list_command_verbose(self):
2909 for tar_name in testtarnames:
2910 with support.captured_stdout() as t:
2911 with tarfile.open(tar_name, 'r') as tf:
2912 tf.list(verbose=True)
2913 expected = t.getvalue().encode('ascii', 'backslashreplace')
2914 for opt in '-v', '--verbose':
2915 out = self.tarfilecmd(opt, '-l', tar_name,
2916 PYTHONIOENCODING='ascii')
2917 self.assertEqual(out, expected)
2918
2919 def test_list_command_invalid_file(self):
2920 zipname = support.findfile('zipdir.zip', subdir='archivetestdata')

Callers

nothing calls this directly

Calls 6

tarfilecmdMethod · 0.95
openMethod · 0.45
listMethod · 0.45
encodeMethod · 0.45
getvalueMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected