]> Raphaël G. Git Repositories - youtubedl/blobdiff - test/test_compat.py
Install support files via debhelper instead of setup.py.
[youtubedl] / test / test_compat.py
index f5317ac3e24290d5aa73e12c7e490bfed72d6c21..b574249489a3ded4cf5dcd66e49c123829c2331e 100644 (file)
@@ -87,6 +87,8 @@ class TestCompat(unittest.TestCase):
 
     def test_compat_shlex_split(self):
         self.assertEqual(compat_shlex_split('-option "one two"'), ['-option', 'one two'])
 
     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'])
+        self.assertEqual(compat_shlex_split('-val 中文'), ['-val', '中文'])
 
     def test_compat_etree_fromstring(self):
         xml = '''
 
     def test_compat_etree_fromstring(self):
         xml = '''