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

Method test_no_expand

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

Source from the content-addressed store, hash-verified

628 self.assertHelp(self.parser, self.expected_help_file)
629
630 def test_no_expand(self):
631 self.parser.add_option("-f", "--file",
632 default="foo.txt",
633 help="read from %default file")
634 self.parser.formatter.default_tag = None
635 expected_help = self.help_prefix + \
636 " -f FILE, --file=FILE read from %default file\n"
637 self.assertHelp(self.parser, expected_help)
638
639
640# -- Test parser.parse_args() ------------------------------------------

Callers

nothing calls this directly

Calls 2

assertHelpMethod · 0.80
add_optionMethod · 0.45

Tested by

no test coverage detected