mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 09:12:40 +01:00
Add test for asian characters (#551)
This commit is contained in:
parent
46cbda0be4
commit
1a911e60a4
@ -53,7 +53,7 @@ def test_sanitize_filename_restricted(self):
|
|||||||
self.assertEqual(u'yes_no', sanitize_filename(u'yes? no', restricted=True))
|
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(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
|
self.assertTrue(sanitize_filename(u'ö', restricted=True) != u'') # No empty filename
|
||||||
|
|
||||||
forbidden = u'"\0\\/&: \'\t\n'
|
forbidden = u'"\0\\/&: \'\t\n'
|
||||||
|
Loading…
Reference in New Issue
Block a user