diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-05-05 22:35:02 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-05-05 22:35:02 -0400 |
commit | 1cf0e9c1786a1c37445041407bd7d86831c9bace (patch) | |
tree | 6795860caa5c5457222c29d20e2e45637d8230c7 /tests/test_cmd2.py | |
parent | 8801b8cba5dc8c91b22d502b6d82959531cb596e (diff) | |
download | cmd2-git-1cf0e9c1786a1c37445041407bd7d86831c9bace.tar.gz |
Updated unit test
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r-- | tests/test_cmd2.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 22f250ac..9dd56315 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -1601,15 +1601,15 @@ def test_alias_create(base_app): assert out == normalize('alias create fake pyscript') def test_alias_create_with_quoted_value(base_app): - """Demonstrate that quotes in alias value will be preserved (except for redirectors)""" + """Demonstrate that quotes in alias value will be preserved (except for redirectors and terminators)""" # Create the alias - out, err = run_cmd(base_app, 'alias create fake help ">" "out file.txt"') + out, err = run_cmd(base_app, 'alias create fake help ">" "out file.txt" ";"') assert out == normalize("Alias 'fake' created") # Look up the new alias (Only the redirector should be unquoted) out, err = run_cmd(base_app, 'alias list fake') - assert out == normalize('alias create fake help > "out file.txt"') + assert out == normalize('alias create fake help > "out file.txt" ;') @pytest.mark.parametrize('alias_name', invalid_command_name) def test_alias_create_invalid_name(base_app, alias_name, capsys): @@ -1692,14 +1692,14 @@ def test_macro_create(base_app): assert out == normalize('macro create fake pyscript') def test_macro_create_with_quoted_value(base_app): - """Demonstrate that quotes in macro value will be preserved (except for redirectors)""" + """Demonstrate that quotes in macro value will be preserved (except for redirectors and terminators)""" # Create the macro - out, err = run_cmd(base_app, 'macro create fake help ">" "out file.txt"') + out, err = run_cmd(base_app, 'macro create fake help ">" "out file.txt" ";"') assert out == normalize("Macro 'fake' created") # Look up the new macro (Only the redirector should be unquoted) out, err = run_cmd(base_app, 'macro list fake') - assert out == normalize('macro create fake help > "out file.txt"') + assert out == normalize('macro create fake help > "out file.txt" ;') @pytest.mark.parametrize('macro_name', invalid_command_name) def test_macro_create_invalid_name(base_app, macro_name): |