diff options
author | gcmalloc <gcmalloc@gmail.com> | 2012-09-28 14:06:37 +0200 |
---|---|---|
committer | gcmalloc <gcmalloc@gmail.com> | 2012-10-12 20:24:58 +0200 |
commit | 9993976ae436c62ef86c2c45f0f001e5f7e471bd (patch) | |
tree | aacfd7c0ee4c00d861d284466ff9e0bcdc4a42ff /test/test_div.py | |
parent | b387fb0385444da4564b64e079ad1d2bba1e9e16 (diff) |
correction on the sanitize title method, change in title resulting
Diffstat (limited to 'test/test_div.py')
-rw-r--r-- | test/test_div.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/test/test_div.py b/test/test_div.py deleted file mode 100644 index 4d4819b3c..000000000 --- a/test/test_div.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- - -# Various small unit tests - -import os,sys -sys.path.append(os.path.dirname(os.path.dirname(__file__))) - -import youtube_dl - -def test_simplify_title(): - assert youtube_dl._simplify_title(u'abc') == u'abc' - assert youtube_dl._simplify_title(u'abc_d-e') == u'abc_d-e' - - assert youtube_dl._simplify_title(u'123') == u'123' - - 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') - - 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' |