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

Method test_shortopt_empty_longopt_append

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

Source from the content-addressed store, hash-verified

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="],
670 {'a': "", 'boo': None, 'foo': ["blah", ""]},
671 [])
672
673 def test_long_option_append(self):
674 self.assertParseOK(["--foo", "bar", "--foo", "", "--foo=x"],

Callers

nothing calls this directly

Calls 1

assertParseOKMethod · 0.80

Tested by

no test coverage detected