aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2011-11-21 21:50:39 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2011-11-21 21:50:39 +0100
commitaf8e8d63f9ed804a258bde933b26c16ff48e0c84 (patch)
tree608f1c75950a956727765f8eef87d49bc87898b2 /test
parente092418d8b360aaaf8c7eba67956010f4e363121 (diff)
Allow non-ASCII characters in simplified titles(Closes #220)
Diffstat (limited to 'test')
-rw-r--r--test/test_div.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_div.py b/test/test_div.py
index 4525c8be6..4d4819b3c 100644
--- a/test/test_div.py
+++ b/test/test_div.py
@@ -16,13 +16,14 @@ def test_simplify_title():
assert u'/' not in youtube_dl._simplify_title(u'abc/de')
assert u'abc' in youtube_dl._simplify_title(u'abc/de')
assert u'de' in youtube_dl._simplify_title(u'abc/de')
+ assert u'/' not in youtube_dl._simplify_title(u'abc/de///')
assert u'\\' not in youtube_dl._simplify_title(u'abc\\de')
assert u'abc' in youtube_dl._simplify_title(u'abc\\de')
assert u'de' in youtube_dl._simplify_title(u'abc\\de')
- # TODO: Fix #220
- #assert youtube_dl._simplify_title(u'ä') == u'ä'
+ assert youtube_dl._simplify_title(u'ä') == u'ä'
+ assert youtube_dl._simplify_title(u'кириллица') == u'кириллица'
# Strip underlines
assert youtube_dl._simplify_title(u'\'a_') == u'a'