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

Method test_parser_default_1

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

Source from the content-addressed store, hash-verified

583 self.assertHelp(self.parser, self.expected_help_file)
584
585 def test_parser_default_1(self):
586 self.parser.add_option("-f", "--file",
587 help=self.file_help)
588 self.parser.set_default('file', "foo.txt")
589 self.assertHelp(self.parser, self.expected_help_file)
590
591 def test_parser_default_2(self):
592 self.parser.add_option("-f", "--file",

Callers

nothing calls this directly

Calls 3

set_defaultMethod · 0.80
assertHelpMethod · 0.80
add_optionMethod · 0.45

Tested by

no test coverage detected