summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-01-15 14:04:43 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-01-15 14:04:43 -0500
commita8e79fdde006660d8d917e24c6fdc73dbec5458f (patch)
tree07cf92f4cb0df5f6d9d83b81ce82ee579ae65dce /tests
parentf2d887f611b62467dc26a85df185c984d163f455 (diff)
downloadcmd2-git-a8e79fdde006660d8d917e24c6fdc73dbec5458f.tar.gz
Made test_echo unit test robust to changes in expected value of "help history"
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cmd2.py2
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