summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-09-13 08:28:08 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-09-13 08:28:08 -0400
commit44b9351f801018d76230914db956b404940f8461 (patch)
tree17de09f2d9e8b27b591483183247bb25f6683f2f /test
parent2de10ba25de0c09ddffa6626a936468f43aa7343 (diff)
downloadpython-coveragepy-44b9351f801018d76230914db956b404940f8461.tar.gz
A nicer way to write help text.
Diffstat (limited to 'test')
-rw-r--r--test/test_cmdline.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test_cmdline.py b/test/test_cmdline.py
index b92fcc3..f06e915 100644
--- a/test/test_cmdline.py
+++ b/test/test_cmdline.py
@@ -12,6 +12,11 @@ class CmdLineTest(CoverageTest):
"""Tests of execution paths through the command line interpreter."""
def command_line(self, args, ret=OK):
+ """Run `args` through the command line.
+
+ Checks that `ret` is returned.
+
+ """
ret_actual = coverage.CoverageScript().command_line(shlex.split(args))
self.assertEqual(ret_actual, ret)
@@ -22,7 +27,7 @@ class CmdLineTest(CoverageTest):
return mk
def mock_command_line(self, args):
- """Run `args` through command_line.
+ """Run `args` through the command line, with a Mock.
Returns the Mock it used and the status code returned.