mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
Additional tests in file name sanitation
This commit is contained in:
parent
aeca861f22
commit
156a59e7a9
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,9 @@ def test_sanitize_filename(self):
|
||||||
self.assertEqual(sanitize_filename(u'ä'), u'ä')
|
self.assertEqual(sanitize_filename(u'ä'), u'ä')
|
||||||
self.assertEqual(sanitize_filename(u'кириллица'), u'кириллица')
|
self.assertEqual(sanitize_filename(u'кириллица'), u'кириллица')
|
||||||
|
|
||||||
|
for forbidden in u'"\0\\/':
|
||||||
|
self.assertTrue(forbidden not in sanitize_filename(forbidden))
|
||||||
|
|
||||||
def test_ordered_set(self):
|
def test_ordered_set(self):
|
||||||
self.assertEqual(orderedSet([1,1,2,3,4,4,5,6,7,3,5]), [1,2,3,4,5,6,7])
|
self.assertEqual(orderedSet([1,1,2,3,4,4,5,6,7,3,5]), [1,2,3,4,5,6,7])
|
||||||
self.assertEqual(orderedSet([]), [])
|
self.assertEqual(orderedSet([]), [])
|
||||||
|
|
Loading…
Reference in a new issue