summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-07-12 00:31:15 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-07-12 00:31:15 -0400
commit297eff0540c2115d817dbe4338830b23bdddd9a0 (patch)
tree846067a6c68cbf43fa47a56ff8e300b62f7b3836 /tests
parent969dab29bbaed194edce881d60643f5e95a02366 (diff)
parente10afbeb6efe7dd806b04bd53eca615bca5d5ffc (diff)
downloadcmd2-git-297eff0540c2115d817dbe4338830b23bdddd9a0.tar.gz
Merge branch 'master' into history
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cmd2.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index 7b0b93a6..95970436 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -1785,3 +1785,18 @@ def test_readline_remove_history_item(base_app):
assert readline.get_current_history_length() == 1
readline.remove_history_item(0)
assert readline.get_current_history_length() == 0
+
+def test_onecmd_raw_str_continue(base_app):
+ line = "help"
+ stop = base_app.onecmd(line)
+ out = base_app.stdout.buffer
+ assert not stop
+ assert out.strip() == BASE_HELP.strip()
+
+def test_onecmd_raw_str_quit(base_app):
+ line = "quit"
+ stop = base_app.onecmd(line)
+ out = base_app.stdout.buffer
+ assert stop
+ assert out == ''
+