diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-08-06 23:25:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-06 23:25:57 -0400 |
commit | 89a5a646ffa2f72154b932f0b2dbf23fd87866e3 (patch) | |
tree | af96ef532ea2eac818b2cf4591eec41959db1528 /tests/test_parsing.py | |
parent | 0f9fcfcd95ee7fd30ebddabbf2068d8ddb725364 (diff) | |
parent | d210846e4df74f6b88995ccfabc3ae25f2b333c9 (diff) | |
download | cmd2-git-89a5a646ffa2f72154b932f0b2dbf23fd87866e3.tar.gz |
Merge pull request #752 from python-cmd2/restrict_alias_macro_names
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) |