diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-09-17 22:12:41 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-09-17 22:12:41 -0400 |
commit | efadff391032482b139524c96dfc4130fc631f9c (patch) | |
tree | 1f5a35d1c65a8c68f8a5eaa4bd78c3cf5d487fa5 /tests/test_cmd2.py | |
parent | 74857c34c00323c881f1669ae95788dcff6a48fa (diff) | |
parent | 1176c0cc99975044d2fcec88b3f0903b8453194f (diff) | |
download | cmd2-git-efadff391032482b139524c96dfc4130fc631f9c.tar.gz |
Merge branch 'master' into doc_additions
Diffstat (limited to 'tests/test_cmd2.py')
-rwxr-xr-x | tests/test_cmd2.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index fc8a1dae..94a49a95 100755 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -1620,7 +1620,8 @@ def test_get_settable_completion_items(base_app): def test_alias_no_subcommand(base_app): out, err = run_cmd(base_app, 'alias') - assert "Usage: alias [-h]" in out[0] + assert "Usage: alias [-h]" in err[0] + assert "Error: the following arguments are required: subcommand" in err[1] def test_alias_create(base_app): # Create the alias @@ -1713,7 +1714,8 @@ def test_multiple_aliases(base_app): def test_macro_no_subcommand(base_app): out, err = run_cmd(base_app, 'macro') - assert "Usage: macro [-h]" in out[0] + assert "Usage: macro [-h]" in err[0] + assert "Error: the following arguments are required: subcommand" in err[1] def test_macro_create(base_app): # Create the macro |