summaryrefslogtreecommitdiff
path: root/test/test_cmdline.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-12-01 16:57:15 -0500
committerNed Batchelder <ned@nedbatchelder.com>2012-12-01 16:57:15 -0500
commit9ad6da410c2dac5a7e6ec5dd793e34bd22988073 (patch)
tree59524a36c1669fbffde2f171814aa6009042fb77 /test/test_cmdline.py
parentb5d55bd78b613b8386e18c0c4e03782277666325 (diff)
downloadpython-coveragepy-git-9ad6da410c2dac5a7e6ec5dd793e34bd22988073.tar.gz
A bunch of tweaks to improve coverage
Diffstat (limited to 'test/test_cmdline.py')
-rw-r--r--test/test_cmdline.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_cmdline.py b/test/test_cmdline.py
index eb7fe0f5..0fd92de2 100644
--- a/test/test_cmdline.py
+++ b/test/test_cmdline.py
@@ -91,6 +91,14 @@ class CmdLineTest(CoverageTest):
)
+class CmdLineTestTest(CmdLineTest):
+ """Tests that our CmdLineTest helpers work."""
+ def test_assert_same_method_calls(self):
+ # All the other tests here use self.cmd_executes_same in successful
+ # ways, so here we just check that it fails.
+ self.assertRaises(AssertionError, self.cmd_executes_same, "-e", "-c")
+
+
class ClassicCmdLineTest(CmdLineTest):
"""Tests of the classic coverage.py command line."""