From 9c5c3145cceb97d474cbb5b993033d54cc2b6d4b Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Tue, 2 Oct 2018 23:18:09 -0400 Subject: Don't worry about unquoting alias and macro names as they shouldn't be entered this way anyway --- tests/test_cmd2.py | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'tests/test_cmd2.py') diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 3d57a105..dd89dd52 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -1860,22 +1860,6 @@ def test_alias_create(base_app, capsys): out = run_cmd(base_app, 'alias list fake') assert out == normalize('alias create fake pyscript') -def test_alias_quoted_name(base_app, capsys): - """Demonstrate that names can be quoted in alias commands because they will be stripped""" - # Create the alias - out = run_cmd(base_app, 'alias create "fake" pyscript') - - # The quotes on names are stripped - assert out == normalize("Alias 'fake' created") - - # Look up the new alias and quote the name - out = run_cmd(base_app, 'alias list "fake"') - assert out == normalize('alias create fake pyscript') - - # Delete the alias using quotes - out = run_cmd(base_app, 'alias delete "fake"') - assert out == normalize("Alias 'fake' deleted") - def test_alias_create_with_quoted_value(base_app, capsys): """Demonstrate that quotes in alias value will be preserved (except for redirectors)""" @@ -1962,22 +1946,6 @@ def test_macro_create(base_app, capsys): out = run_cmd(base_app, 'macro list fake') assert out == normalize('macro create fake pyscript') -def test_macro_create_quoted_name(base_app, capsys): - """Demonstrate that names can be quoted in macro commands because they will be stripped""" - # Create the macro - out = run_cmd(base_app, 'macro create "fake" pyscript') - - # The quotes on names are stripped - assert out == normalize("Macro 'fake' created") - - # Look up the new macro and quote the name - out = run_cmd(base_app, 'macro list "fake"') - assert out == normalize('macro create fake pyscript') - - # Delete the macro using quotes - out = run_cmd(base_app, 'macro delete "fake"') - assert out == normalize("Macro 'fake' deleted") - def test_macro_create_with_quoted_value(base_app, capsys): """Demonstrate that quotes in macro value will be preserved (except for redirectors)""" # Create the macro -- cgit v1.2.1