diff options
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r-- | tests/test_cmdline.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index e7014418..f4c866a6 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -156,6 +156,8 @@ class CmdLineTest(unittest.TestCase): self.assertTrue('Python' in o) o = self.check_success("-H", "filter", "raiseonerror") self.assertTrue('raiseonerror', o) + e = self.check_failure("-H", "lexer", "foobar") + self.assertTrue('not found' in e) def test_S_opt(self): o = self.check_success("-S", "default", "-f", "html", "-O", "linenos=1") @@ -178,7 +180,7 @@ class CmdLineTest(unittest.TestCase): def test_invalid_opts(self): for opts in [("-L", "-lpy"), ("-L", "-fhtml"), ("-L", "-Ox"), - ("-a",), ("-Sst", "-lpy"), ("-H",), + ("-a", "arg"), ("-Sst", "-lpy"), ("-H",), ("-H", "formatter"), ("-H", "foo", "bar"), ("-s",)]: self.check_failure(*opts, code=2) |