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

Method test_extract_command_verbose

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

Source from the content-addressed store, hash-verified

3003 os_helper.rmtree(tarextdir)
3004
3005 def test_extract_command_verbose(self):
3006 self.make_simple_tarfile(tmpname)
3007 for opt in '-v', '--verbose':
3008 try:
3009 with os_helper.temp_cwd(tarextdir):
3010 out = self.tarfilecmd(opt, '-e', tmpname,
3011 PYTHONIOENCODING='utf-8')
3012 self.assertIn(b' file is extracted.', out)
3013 finally:
3014 os_helper.rmtree(tarextdir)
3015
3016 def test_extract_command_filter(self):
3017 self.make_evil_tarfile(tmpname)

Callers

nothing calls this directly

Calls 3

make_simple_tarfileMethod · 0.95
tarfilecmdMethod · 0.95
assertInMethod · 0.80

Tested by

no test coverage detected