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

Method test_conflict_override_opts

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

Source from the content-addressed store, hash-verified

1378 help="dry run mode")
1379
1380 def test_conflict_override_opts(self):
1381 opt = self.parser.get_option("--dry-run")
1382 self.assertEqual(opt._short_opts, ["-n"])
1383 self.assertEqual(opt._long_opts, ["--dry-run"])
1384
1385 def test_conflict_override_help(self):
1386 self.assertOutput(["-h"], """\

Callers

nothing calls this directly

Calls 2

get_optionMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected