Browse Source
[test/compat] compat_shlex_split: test with newlines
master
Jaime Marquínez Ferrándiz
8 years ago
committed by
Sergey M․
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
1 additions and
0 deletions
-
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 = ''' |
|
|
|