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
commitb9c082a8e8f1661c2a152c1db85e658bf98412cc (patch)
treea2daffbc54471685414dab1e2ad28349db3d0943 /test/test_cmdline.py
parentb6c24ae9d590c387419c8bc192f92db983b7a29e (diff)
downloadpython-coveragepy-b9c082a8e8f1661c2a152c1db85e658bf98412cc.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 eb7fe0f..0fd92de 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."""