Home
last modified time | relevance | path

Searched refs:assertParseOK (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_optparse.py50 def assertParseOK(self, args, expected_opts, expected_positional_args): member in BaseTest
659 self.assertParseOK([], {'a': None, 'boo': None, 'foo': None}, [])
662 self.assertParseOK(["-a", "", "--foo=blah", "--foo="],
667 self.assertParseOK(["--foo", "bar", "--foo", "", "--foo=x"],
674 self.assertParseOK(["-abc"],
679 self.assertParseOK(["-a", "34"],
684 self.assertParseOK(["-b34"],
689 self.assertParseOK(["-b", "-5"],
694 self.assertParseOK(["--boo=13"],
699 self.assertParseOK(["--boo", "111"],
[all …]
/external/python/cpython3/Lib/test/
Dtest_optparse.py48 def assertParseOK(self, args, expected_opts, expected_positional_args): member in BaseTest
664 self.assertParseOK([], {'a': None, 'boo': None, 'foo': None}, [])
667 self.assertParseOK(["-a", "", "--foo=blah", "--foo="],
672 self.assertParseOK(["--foo", "bar", "--foo", "", "--foo=x"],
679 self.assertParseOK(["-abc"],
684 self.assertParseOK(["-a", "34"],
689 self.assertParseOK(["-b34"],
694 self.assertParseOK(["-b", "-5"],
699 self.assertParseOK(["--boo=13"],
704 self.assertParseOK(["--boo", "111"],
[all …]