aboutsummaryrefslogtreecommitdiff
path: root/test/test_compat.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2016-06-29 18:54:30 +0200
committerSergey M․ <dstftw@gmail.com>2016-07-01 03:30:35 +0700
commita9eede3913a9e9c7e094907f36a22bc6719ce73d (patch)
treea47503b33e1348ec247f06063f514193baf3f479 /test/test_compat.py
parent9e29ef13a378769c19ccec200aba377ad504fe8f (diff)
[test/compat] compat_shlex_split: test with newlines
Diffstat (limited to 'test/test_compat.py')
-rw-r--r--test/test_compat.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_compat.py b/test/test_compat.py
index f5317ac3e..1d7ac9f16 100644
--- a/test/test_compat.py
+++ b/test/test_compat.py
@@ -87,6 +87,7 @@ class TestCompat(unittest.TestCase):
def test_compat_shlex_split(self):
self.assertEqual(compat_shlex_split('-option "one two"'), ['-option', 'one two'])
+ self.assertEqual(compat_shlex_split('-option "one\ntwo" \n -flag'), ['-option', 'one\ntwo', '-flag'])
def test_compat_etree_fromstring(self):
xml = '''