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

Method test_defaults

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

Source from the content-addressed store, hash-verified

718 [])
719
720 def test_defaults(self):
721 (options, args) = self.parser.parse_args([])
722 defaults = self.parser.get_default_values()
723 self.assertEqual(vars(defaults), vars(options))
724
725 def test_ambiguous_option(self):
726 self.parser.add_option("--foz", action="store",

Callers

nothing calls this directly

Calls 3

get_default_valuesMethod · 0.80
parse_argsMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected