summaryrefslogtreecommitdiff
path: root/tests/test_cmdline.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r--tests/test_cmdline.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py
index 112e5d68..f879461a 100644
--- a/tests/test_cmdline.py
+++ b/tests/test_cmdline.py
@@ -259,9 +259,13 @@ class CmdLineTest(BaseCmdLineTest):
cov.save()
""")
- def test_debug(self):
- self.cmd_help("debug", "What information would you like: config, data, sys, premain?")
- self.cmd_help("debug foo", "Don't know what you mean by 'foo'")
+ @pytest.mark.parametrize("cmd, output", [
+ ("debug", "What information would you like: config, data, sys, premain?"),
+ ("debug foo", "Don't know what you mean by 'foo'"),
+ ("debug sys config", "Only one topic at a time, please"),
+ ])
+ def test_debug(self, cmd, output):
+ self.cmd_help(cmd, output)
def test_debug_sys(self):
self.command_line("debug sys")