add string test case

This commit is contained in:
agnewee 2017-12-05 00:49:36 +08:00
parent d470afa84e
commit d1b0517114
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,9 @@ def test_safeunicode():
assert safeunicode(1) == u'1' assert safeunicode(1) == u'1'
assert safeunicode('中文') == u'中文' assert safeunicode('中文') == u'中文'
assert safeunicode(u'hell0') == u'hello'
assert safeunicode(u'中文') == u'中文'
def test_lstrips(): def test_lstrips():
assert lstrips('foobbar', '') == 'foobbar' assert lstrips('foobbar', '') == 'foobbar'