summaryrefslogtreecommitdiff
path: root/tests/test_cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-09-26 16:05:52 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-09-26 16:05:52 -0400
commit58ba2390dc823b95b8d97f67d518b4a50e22be89 (patch)
tree31ca6333e3ef7028c519802ee2244ea36d43a807 /tests/test_cmd2.py
parent7bdc2f6a4bf8fc8a12d5e6a6397e3521949e196e (diff)
downloadcmd2-git-58ba2390dc823b95b8d97f67d518b4a50e22be89.tar.gz
Converted _relative_load to argparse
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r--tests/test_cmd2.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index f388aaa5..1b31854a 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -614,8 +614,7 @@ def test_base_relative_load(base_app, request):
def test_relative_load_requires_an_argument(base_app, capsys):
run_cmd(base_app, '_relative_load')
out, err = capsys.readouterr()
- assert out == ''
- assert err.startswith('ERROR: _relative_load command requires a file path:\n')
+ assert 'Error: the following arguments' in err
assert base_app.cmdqueue == []