diff options
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. |