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

Method test_conflict_resolve_help

Lib/test/test_optparse.py:1346–1352  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1344 self.assertEqual(verbose_opt._long_opts, ["--verbose"])
1345
1346 def test_conflict_resolve_help(self):
1347 self.assertOutput(["-h"], """\
1348Options:
1349 --verbose increment verbosity
1350 -h, --help show this help message and exit
1351 -v, --version show version
1352""")
1353
1354 def test_conflict_resolve_short_opt(self):
1355 self.assertParseOK(["-v"],

Callers

nothing calls this directly

Calls 1

assertOutputMethod · 0.80

Tested by

no test coverage detected