diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2012-10-19 05:48:12 -0700 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2012-10-19 05:48:12 -0700 |
commit | 9248cb0549674ca78e1a51ebc98eb5c5a29876e8 (patch) | |
tree | 359fa4fe28601f43c77f1370e369338837acefdc /test/test_div.py | |
parent | 902b2a0a45d397089807182354c34fbbd56719af (diff) | |
parent | 6b41b6111966400925dd648420f11704ac9dbbf2 (diff) |
Merge pull request #472 from gcmalloc/master
Test proposal
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' |