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

Method test_bad_use

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

Source from the content-addressed store, hash-verified

3454 return script_helper.assert_python_failure('-m', 'zipfile', *args)
3455
3456 def test_bad_use(self):
3457 rc, out, err = self.zipfilecmd_failure()
3458 self.assertEqual(out, b'')
3459 self.assertIn(b'usage', err.lower())
3460 self.assertIn(b'error', err.lower())
3461 self.assertIn(b'required', err.lower())
3462 rc, out, err = self.zipfilecmd_failure('-l', '')
3463 self.assertEqual(out, b'')
3464 self.assertNotEqual(err.strip(), b'')
3465
3466 def test_test_command(self):
3467 zip_name = findfile('zipdir.zip', subdir='archivetestdata')

Callers

nothing calls this directly

Calls 6

zipfilecmd_failureMethod · 0.95
assertInMethod · 0.80
assertNotEqualMethod · 0.80
assertEqualMethod · 0.45
lowerMethod · 0.45
stripMethod · 0.45

Tested by

no test coverage detected