From 5979544c1cf0115c11555239d1da20add04c34ec Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 13 Sep 2009 08:28:08 -0400 Subject: A nicer way to write help text. --- test/test_cmdline.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/test_cmdline.py') 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. -- cgit v1.2.1