diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-07-10 17:15:43 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-07-10 17:15:43 -0400 |
commit | 9a69a43b43f89408fe7afcea76954cbdcf1c09b9 (patch) | |
tree | 8b5e286d949be6ffe7434eb6559062ad378fc504 /tests/test_cmdline.py | |
parent | df006b4ec86d0325e54414305c1f6ea3d856e6ca (diff) | |
download | python-coveragepy-git-9a69a43b43f89408fe7afcea76954cbdcf1c09b9.tar.gz |
Cover a few more lines in cmdline.py
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r-- | tests/test_cmdline.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index 3f471b88..1e72c4f4 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -654,6 +654,11 @@ class CmdLineStdoutTest(BaseCmdLineTest): self.assertIn("--timid", out) self.assertGreater(out.count("\n"), 10) + def test_unknown_topic(self): + # Should probably be an ERR return, but meh. + self.command_line("help foobar") + self.assertEqual(self.stdout(), "Don't know topic 'foobar'\n") + def test_error(self): self.command_line("fooey kablooey", ret=ERR) out = self.stdout() |