瀏覽代碼

[test/compat] compat_shlex_split: test with newlines

Jaime Marquínez Ferrándiz 9 年之前
父節點
當前提交
a9eede3913
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      test/test_compat.py

+ 1 - 0
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 = '''