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
commit119b0a4c7cf20240bc3d302045c23175b2805f57 (patch)
tree0bfeee24fab1807da1d9375841c93bb014a79878 /tests/test_cmdline.py
parent8ff9ef8f25be766990309f56a944985fd844db59 (diff)
downloadpython-coveragepy-119b0a4c7cf20240bc3d302045c23175b2805f57.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 3f471b8..1e72c4f 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()