projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e29ef1
)
[test/compat] compat_shlex_split: test with newlines
author
Jaime Marquínez Ferrándiz
<jaime.marquinez.ferrandiz@gmail.com>
Wed, 29 Jun 2016 16:54:30 +0000
(18:54 +0200)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 30 Jun 2016 20:30:35 +0000
(
03:30
+0700)
test/test_compat.py
patch
|
blob
|
history
diff --git
a/test/test_compat.py
b/test/test_compat.py
index f5317ac3e24290d5aa73e12c7e490bfed72d6c21..1d7ac9f1696b8e66b1f8bd31d2f1694cc65468f6 100644
(file)
--- 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 = '''