summaryrefslogtreecommitdiff
path: root/tests/test_parsing.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-04-29 16:54:36 -0600
committerkotfu <kotfu@kotfu.net>2018-04-29 16:54:36 -0600
commitefce15990f2485666f38178ca444c786ac05901d (patch)
tree877f55a5b7b157672129a434d3754730556fe4a1 /tests/test_parsing.py
parent3a7e713ad191bf9763d04c907d4fb27a0d52208b (diff)
downloadcmd2-git-efce15990f2485666f38178ca444c786ac05901d.tar.gz
Add test_command_with_quoted_args()
Diffstat (limited to 'tests/test_parsing.py')
-rw-r--r--tests/test_parsing.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_parsing.py b/tests/test_parsing.py
index 8c026631..53c941d2 100644
--- a/tests/test_parsing.py
+++ b/tests/test_parsing.py
@@ -67,6 +67,12 @@ def test_command_with_args(parser):
assert statement.args == 'with args'
assert not statement.pipe_to
+def test_command_with_quoted_args(parser):
+ line = 'command with "quoted args" and "some not"'
+ statement = parser.parse(line)
+ assert statement.command == 'command'
+ assert statement.args == 'with "quoted args" and "some not"'
+
def test_parse_command_with_args_terminator_and_suffix(parser):
line = 'command with args and terminator; and suffix'
statement = parser.parse(line)