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

Method test_alt_expand

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

Source from the content-addressed store, hash-verified

621 self.assertHelp(self.parser, expected_help)
622
623 def test_alt_expand(self):
624 self.parser.add_option("-f", "--file",
625 default="foo.txt",
626 help="read from FILE [default: *DEFAULT*]")
627 self.parser.formatter.default_tag = "*DEFAULT*"
628 self.assertHelp(self.parser, self.expected_help_file)
629
630 def test_no_expand(self):
631 self.parser.add_option("-f", "--file",

Callers

nothing calls this directly

Calls 2

assertHelpMethod · 0.80
add_optionMethod · 0.45

Tested by

no test coverage detected