diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2011-11-21 21:50:39 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2011-11-21 21:50:39 +0100 |
commit | af8e8d63f9ed804a258bde933b26c16ff48e0c84 (patch) | |
tree | 608f1c75950a956727765f8eef87d49bc87898b2 /test | |
parent | e092418d8b360aaaf8c7eba67956010f4e363121 (diff) |
Allow non-ASCII characters in simplified titles(Closes #220)
Diffstat (limited to 'test')
-rw-r--r-- | test/test_div.py | 5 |
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' |