(self)
| 814 | |
| 815 | class TestChoice(BaseTest): |
| 816 | def setUp(self): |
| 817 | self.parser = InterceptingOptionParser(usage=SUPPRESS_USAGE) |
| 818 | self.parser.add_option("-c", action="store", type="choice", |
| 819 | dest="choice", choices=["one", "two", "three"]) |
| 820 | |
| 821 | def test_valid_choice(self): |
| 822 | self.assertParseOK(["-c", "one", "xyz"], |
nothing calls this directly
no test coverage detected