diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-13 08:28:08 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-13 08:28:08 -0400 |
commit | 5979544c1cf0115c11555239d1da20add04c34ec (patch) | |
tree | 5cd2c34de30c480768ea54fc35540e4f30851212 /test/test_cmdline.py | |
parent | fff3b2e88b388cfd7db71a85fe002bb7450f31bd (diff) | |
download | python-coveragepy-git-5979544c1cf0115c11555239d1da20add04c34ec.tar.gz |
A nicer way to write help text.
Diffstat (limited to 'test/test_cmdline.py')
-rw-r--r-- | test/test_cmdline.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test_cmdline.py b/test/test_cmdline.py index b92fcc35..f06e9158 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. |