summaryrefslogtreecommitdiff
path: root/tests/test_cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-08-24 15:12:03 -0400
committerGitHub <noreply@github.com>2018-08-24 15:12:03 -0400
commitf27de8fde23b8f27b5c5b5d07930c25c4d0ddc0a (patch)
tree2583fae4145d2b930f229738e92f6f480dad6d02 /tests/test_cmd2.py
parentac33619741ef4cdbf4ddcda444ea0428d1348ef0 (diff)
parent42094e0d43c1a7373f4ed96d8d72dcf16f77a5f6 (diff)
downloadcmd2-git-f27de8fde23b8f27b5c5b5d07930c25c4d0ddc0a.tar.gz
Merge branch 'master' into tag_creation
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r--tests/test_cmd2.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index b6081f53..b75cd102 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -62,7 +62,7 @@ def test_base_argparse_help(base_app, capsys):
out2 = run_cmd(base_app, 'help set')
assert out1 == out2
- assert out1[0].startswith('usage: set')
+ assert out1[0].startswith('Usage: set')
assert out1[1] == ''
assert out1[2].startswith('Sets a settable parameter')
@@ -71,10 +71,8 @@ def test_base_invalid_option(base_app, capsys):
out, err = capsys.readouterr()
out = normalize(out)
err = normalize(err)
- assert len(err) == 3
- assert len(out) == 15
assert 'Error: unrecognized arguments: -z' in err[0]
- assert out[0] == 'usage: set [-h] [-a] [-l] [settable [settable ...]]'
+ assert out[0] == 'Usage: set settable{0..2} [-h] [-a] [-l]'
def test_base_shortcuts(base_app):
out = run_cmd(base_app, 'shortcuts')
@@ -1252,7 +1250,7 @@ load Runs commands in script file that is encoded as either ASCII
py Invoke python command, shell, or script
pyscript Runs a python script file inside the console
quit Exits this application.
-set Sets a settable parameter or shows current settings of parameters.
+set Sets a settable parameter or shows current settings of parameters
shell Execute a command as if at the OS prompt.
shortcuts Lists shortcuts (aliases) available.
unalias Unsets aliases