summaryrefslogtreecommitdiffhomepage
path: root/test/test_utils.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2012-11-27 16:07:52 +0100
committerPhilipp Hagemeister <[email protected]>2012-11-27 16:07:52 +0100
commit1a911e60a4c2e15182a4c08683863a86a722b43f (patch)
treed6f5a54d6504e49b6741d8138ae3cbfba7e86afa /test/test_utils.py
parent46cbda0be4bed00122a5cf43e640808e6c32222d (diff)
downloadyoutube-dl-1a911e60a4c2e15182a4c08683863a86a722b43f.tar.gz
youtube-dl-1a911e60a4c2e15182a4c08683863a86a722b43f.zip
Add test for asian characters (#551)
Diffstat (limited to 'test/test_utils.py')
-rw-r--r--test/test_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index e806a10c5..e7d4e0330 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -53,7 +53,7 @@ class TestUtil(unittest.TestCase):
self.assertEqual(u'yes_no', sanitize_filename(u'yes? no', restricted=True))
self.assertEqual(u'this_-_that', sanitize_filename(u'this: that', restricted=True))
- self.assertEqual(sanitize_filename(u'aäb', restricted=True), u'a_b')
+ self.assertEqual(sanitize_filename(u'aäb中国的c', restricted=True), u'a_b_c')
self.assertTrue(sanitize_filename(u'ö', restricted=True) != u'') # No empty filename
forbidden = u'"\0\\/&: \'\t\n'