summaryrefslogtreecommitdiff
path: root/tests/test_cmdline.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-07-10 17:15:43 -0400
committerNed Batchelder <ned@nedbatchelder.com>2016-07-10 17:15:43 -0400
commit9a69a43b43f89408fe7afcea76954cbdcf1c09b9 (patch)
tree8b5e286d949be6ffe7434eb6559062ad378fc504 /tests/test_cmdline.py
parentdf006b4ec86d0325e54414305c1f6ea3d856e6ca (diff)
downloadpython-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.py5
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()