diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-08-05 22:48:54 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-08-05 22:48:54 -0400 |
commit | 47921d02aa876e2cca35d7a939bfc5a6584f8359 (patch) | |
tree | ff5a366bc8b9c90195af8724b98fb3d3694113a9 /tests/test_parsing.py | |
parent | 0f9fcfcd95ee7fd30ebddabbf2068d8ddb725364 (diff) | |
download | cmd2-git-47921d02aa876e2cca35d7a939bfc5a6584f8359.tar.gz |
Removed ability for aliases and macros to share names with commands
Diffstat (limited to 'tests/test_parsing.py')
-rwxr-xr-x | tests/test_parsing.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/test_parsing.py b/tests/test_parsing.py index ac540183..2114bfaa 100755 --- a/tests/test_parsing.py +++ b/tests/test_parsing.py @@ -604,19 +604,11 @@ def test_empty_statement_raises_exception(): ('l', 'shell', 'ls -al') ]) def test_parse_alias_and_shortcut_expansion(parser, line, command, args): - # Test first with expansion statement = parser.parse(line) assert statement.command == command assert statement == args assert statement.args == statement - # Now allow no expansion - tokens = shlex_split(line) - statement = parser.parse(line, expand=False) - assert statement.command == tokens[0] - assert shlex_split(statement) == tokens[1:] - assert statement.args == statement - def test_parse_alias_on_multiline_command(parser): line = 'anothermultiline has > inside an unfinished command' statement = parser.parse(line) |