projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46cbda0
)
Add test for asian characters (#551)
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 27 Nov 2012 15:07:52 +0000
(16:07 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 27 Nov 2012 15:07:52 +0000
(16:07 +0100)
test/test_utils.py
patch
|
blob
|
history
diff --git
a/test/test_utils.py
b/test/test_utils.py
index e806a10c5309dea3a4bb679de6a6ac3f22c4dd91..e7d4e03309ac3933f5da00057db21c65c46606f4 100644
(file)
--- 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'