summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_shlexparsing.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/test_shlexparsing.py b/tests/test_shlexparsing.py
index b9caed7c..d0907820 100644
--- a/tests/test_shlexparsing.py
+++ b/tests/test_shlexparsing.py
@@ -213,11 +213,13 @@ def test_has_redirect_inside_terminator(parser):
assert results.args == '> inside'
assert results.terminator == ';'
-# def test_parse_unfinished_multiliine_command(parser):
-# line = 'multiline has > inside an unfinished command'
-# results = parser.parseString(line)
-# assert results.multilineCommand == 'multiline'
-# assert not 'args' in results
+def test_parse_unfinished_multiliine_command(parser):
+ line = 'multiline has > inside an unfinished command'
+ statement = parser.parseString(line)
+ assert statement.multilineCommand == 'multiline'
+ assert not statement.args
+ assert not statement.terminator
+
def test_parse_multiline_command_ignores_redirectors_within_it(parser):
line = 'multiline has > inside;'