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

Method test_help

Lib/test/test_cmd_line.py:49–57  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47
48 @support.cpython_only
49 def test_help(self):
50 self.verify_valid_flag('-h')
51 self.verify_valid_flag('-?')
52 out = self.verify_valid_flag('--help')
53 lines = out.splitlines()
54 self.assertIn(b'usage', lines[0])
55 self.assertNotIn(b'PYTHONHOME', out)
56 self.assertNotIn(b'-X dev', out)
57 self.assertLess(len(lines), 50)
58
59 @support.cpython_only
60 def test_help_env(self):

Callers

nothing calls this directly

Calls 5

verify_valid_flagMethod · 0.95
assertInMethod · 0.80
assertNotInMethod · 0.80
splitlinesMethod · 0.45
assertLessMethod · 0.45

Tested by

no test coverage detected