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

Method test_extract_command

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

Source from the content-addressed store, hash-verified

2993 os_helper.unlink(tar_name)
2994
2995 def test_extract_command(self):
2996 self.make_simple_tarfile(tmpname)
2997 for opt in '-e', '--extract':
2998 try:
2999 with os_helper.temp_cwd(tarextdir):
3000 out = self.tarfilecmd(opt, tmpname)
3001 self.assertEqual(out, b'')
3002 finally:
3003 os_helper.rmtree(tarextdir)
3004
3005 def test_extract_command_verbose(self):
3006 self.make_simple_tarfile(tmpname)

Callers

nothing calls this directly

Calls 3

make_simple_tarfileMethod · 0.95
tarfilecmdMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected