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

Method test_option_default

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

Source from the content-addressed store, hash-verified

577 " -f FILE, --file=FILE read from FILE [default: none]\n"
578
579 def test_option_default(self):
580 self.parser.add_option("-f", "--file",
581 default="foo.txt",
582 help=self.file_help)
583 self.assertHelp(self.parser, self.expected_help_file)
584
585 def test_parser_default_1(self):
586 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