Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_optparse.py137 def assertParseFail(self, cmdline_args, expected_output): member in BaseTest
650 self.assertParseFail(["-a"], "-a option requires 1 argument")
653 self.assertParseFail(["-b", "5x"],
657 self.assertParseFail(["--boo13"], "no such option: --boo13")
660 self.assertParseFail(["--boo=x5"],
726 self.assertParseFail(["--f=bar"],
775 self.assertParseFail(["-test"],
825 self.assertParseFail(["-c", "four", "abc"],
879 self.assertParseFail(["-q3", "-v"], "no such option: -3")
882 self.assertParseFail(["--quiet=3", "-v"],
[all …]
/external/python/cpython2/Lib/test/
Dtest_optparse.py139 def assertParseFail(self, cmdline_args, expected_output): member in BaseTest
645 self.assertParseFail(["-a"], "-a option requires an argument")
648 self.assertParseFail(["-b", "5x"],
652 self.assertParseFail(["--boo13"], "no such option: --boo13")
655 self.assertParseFail(["--boo=x5"],
721 self.assertParseFail(["--f=bar"],
770 self.assertParseFail(["-test"],
827 self.assertParseFail(["-c", "four", "abc"],
881 self.assertParseFail(["-q3", "-v"], "no such option: -3")
884 self.assertParseFail(["--quiet=3", "-v"],
[all …]