(self)
| 252 | self.assertEqual(options.foo, ["a", "b", "c"]) |
| 253 | |
| 254 | def test_multiple_int(self): |
| 255 | options = OptionParser() |
| 256 | options.define("foo", type=int, multiple=True) |
| 257 | options.parse_command_line(["main.py", "--foo=1,3,5:7"]) |
| 258 | self.assertEqual(options.foo, [1, 3, 5, 6, 7]) |
| 259 | |
| 260 | def test_error_redefine(self): |
| 261 | options = OptionParser() |
nothing calls this directly
no test coverage detected