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

Method test_help_all

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

Source from the content-addressed store, hash-verified

79
80 @support.cpython_only
81 def test_help_all(self):
82 out = self.verify_valid_flag('--help-all')
83 lines = out.splitlines()
84 self.assertIn(b'usage', lines[0])
85 self.assertIn(b'PYTHONHOME', out)
86 self.assertIn(b'-X dev', out)
87
88 # The first line contains the program name,
89 # but the rest should be ASCII-only
90 b''.join(lines[1:]).decode('ascii')
91
92 def test_optimize(self):
93 self.verify_valid_flag('-O')

Callers

nothing calls this directly

Calls 5

verify_valid_flagMethod · 0.95
assertInMethod · 0.80
splitlinesMethod · 0.45
decodeMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected