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

Method test_empty

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

Source from the content-addressed store, hash-verified

663 "option --boo: invalid integer value: 'x5'")
664
665 def test_empty(self):
666 self.assertParseOK([], {'a': None, 'boo': None, 'foo': None}, [])
667
668 def test_shortopt_empty_longopt_append(self):
669 self.assertParseOK(["-a", "", "--foo=blah", "--foo="],

Callers

nothing calls this directly

Calls 1

assertParseOKMethod · 0.80

Tested by

no test coverage detected