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

Method test_test_command

Lib/test/test_zipfile/test_core.py:3466–3473  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3464 self.assertNotEqual(err.strip(), b'')
3465
3466 def test_test_command(self):
3467 zip_name = findfile('zipdir.zip', subdir='archivetestdata')
3468 for opt in '-t', '--test':
3469 out = self.zipfilecmd(opt, zip_name)
3470 self.assertEqual(out.rstrip(), b'Done testing')
3471 zip_name = findfile('testtar.tar')
3472 rc, out, err = self.zipfilecmd_failure('-t', zip_name)
3473 self.assertEqual(out, b'')
3474
3475 def test_list_command(self):
3476 zip_name = findfile('zipdir.zip', subdir='archivetestdata')

Callers

nothing calls this directly

Calls 5

zipfilecmdMethod · 0.95
zipfilecmd_failureMethod · 0.95
findfileFunction · 0.90
assertEqualMethod · 0.45
rstripMethod · 0.45

Tested by

no test coverage detected