mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-22 02:15:12 +00:00
[test/compat] compat_shlex_split: test with newlines
This commit is contained in:
parent
9e29ef13a3
commit
a9eede3913
1 changed files with 1 additions and 0 deletions
|
@ -87,6 +87,7 @@ def test_compat_urllib_parse_urlencode(self):
|
|||
|
||||
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 = '''
|
||||
|
|
Loading…
Reference in a new issue