summaryrefslogtreecommitdiff
path: root/test/test_cmdline.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-11-04 10:40:21 -0500
committerNed Batchelder <ned@nedbatchelder.com>2012-11-04 10:40:21 -0500
commit2a73a61f44ee35ba2a6c5f8c275c061ab3ed41b3 (patch)
tree3c40f37f685ee7cb1e785472e273c50d61b5e1da /test/test_cmdline.py
parent0b42a659f8a8159c105d5e2cf11222aa7d80d744 (diff)
downloadpython-coveragepy-git-2a73a61f44ee35ba2a6c5f8c275c061ab3ed41b3.tar.gz
The old way of getting help text was just weird.
Diffstat (limited to 'test/test_cmdline.py')
-rw-r--r--test/test_cmdline.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_cmdline.py b/test/test_cmdline.py
index d4cc763d..e8e2336e 100644
--- a/test/test_cmdline.py
+++ b/test/test_cmdline.py
@@ -604,6 +604,12 @@ class CmdLineStdoutTest(CmdLineTest):
assert "Code coverage for Python." in out
assert out.count("\n") < 4
+ def test_version(self):
+ self.command_line("--version")
+ out = self.stdout()
+ assert "ersion " in out
+ assert out.count("\n") < 4
+
def test_help(self):
self.command_line("help")
out = self.stdout()