diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-07-11 09:32:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-11 09:32:58 -0400 |
commit | 3869d718b36b05e38cfb959357c209d567fdfb8e (patch) | |
tree | cf4bdfe614f740d0b1ec33ff9eba0fc5a8c21e4f /tests | |
parent | 951cc1c6d877dfac1d0afcca3ea84776a9960aa9 (diff) | |
parent | e10afbeb6efe7dd806b04bd53eca615bca5d5ffc (diff) | |
download | cmd2-git-3869d718b36b05e38cfb959357c209d567fdfb8e.tar.gz |
Merge branch 'master' into plugin_functions
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_cmd2.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 77dcc875..b973fdf5 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -1787,3 +1787,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 == '' + |