MCPcopy Create free account
hub / github.com/python/cpython / test_conflict_override_help

Method test_conflict_override_help

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

Source from the content-addressed store, hash-verified

1383 self.assertEqual(opt._long_opts, ["--dry-run"])
1384
1385 def test_conflict_override_help(self):
1386 self.assertOutput(["-h"], """\
1387Options:
1388 -h, --help show this help message and exit
1389 -n, --dry-run dry run mode
1390""")
1391
1392 def test_conflict_override_args(self):
1393 self.assertParseOK(["-n"],

Callers

nothing calls this directly

Calls 1

assertOutputMethod · 0.80

Tested by

no test coverage detected