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

Method test_parser_default_2

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

Source from the content-addressed store, hash-verified

589 self.assertHelp(self.parser, self.expected_help_file)
590
591 def test_parser_default_2(self):
592 self.parser.add_option("-f", "--file",
593 help=self.file_help)
594 self.parser.set_defaults(file="foo.txt")
595 self.assertHelp(self.parser, self.expected_help_file)
596
597 def test_no_default(self):
598 self.parser.add_option("-f", "--file",

Callers

nothing calls this directly

Calls 3

assertHelpMethod · 0.80
add_optionMethod · 0.45
set_defaultsMethod · 0.45

Tested by

no test coverage detected