summaryrefslogtreecommitdiff
path: root/tests/test_parsing.py
diff options
context:
space:
mode:
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)