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

Method test_count_overriding_default

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

Source from the content-addressed store, hash-verified

889 self.assertParseOK([], {'verbose':0}, [])
890
891 def test_count_overriding_default(self):
892 self.parser.set_default('verbose', 0)
893 self.assertParseOK(["-vvv", "--verbose=2", "-q", "-v"],
894 {'verbose': 1}, [])
895
896class TestMultipleArgs(BaseTest):
897 def setUp(self):

Callers

nothing calls this directly

Calls 2

set_defaultMethod · 0.80
assertParseOKMethod · 0.80

Tested by

no test coverage detected