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

Method test_short_and_long_option_split

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

Source from the content-addressed store, hash-verified

730
731
732 def test_short_and_long_option_split(self):
733 self.assertParseOK(["-a", "xyz", "--foo", "bar"],
734 {'a': 'xyz', 'boo': None, 'foo': ["bar"]},
735 [])
736
737 def test_short_option_split_long_option_append(self):
738 self.assertParseOK(["--foo=bar", "-b", "123", "--foo", "baz"],

Callers

nothing calls this directly

Calls 1

assertParseOKMethod · 0.80

Tested by

no test coverage detected