diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-01-15 14:04:43 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-01-15 14:04:43 -0500 |
commit | a8e79fdde006660d8d917e24c6fdc73dbec5458f (patch) | |
tree | 07cf92f4cb0df5f6d9d83b81ce82ee579ae65dce /tests/test_cmd2.py | |
parent | f2d887f611b62467dc26a85df185c984d163f455 (diff) | |
download | cmd2-git-a8e79fdde006660d8d917e24c6fdc73dbec5458f.tar.gz |
Made test_echo unit test robust to changes in expected value of "help history"
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r-- | tests/test_cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 76efde5c..f48c2a79 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -1490,7 +1490,7 @@ def test_echo(capsys): # Check the output assert app.cmdqueue == [] assert app._current_script_dir is None - assert out.startswith('{}{}\n'.format(app.prompt, command) + 'usage: history [-h] [-s] [arg [arg ...]]') + assert out.startswith('{}{}\n'.format(app.prompt, command) + HELP_HISTORY.split()[0]) def test_pseudo_raw_input_tty_rawinput_true(): # use context managers so original functions get put back when we are done |