From d1b051711492371541bb7515dee53170b59a008b Mon Sep 17 00:00:00 2001 From: agnewee Date: Tue, 5 Dec 2017 00:49:36 +0800 Subject: [PATCH] add string test case --- tests/test_string.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_string.py b/tests/test_string.py index 44e738f..4fda139 100644 --- a/tests/test_string.py +++ b/tests/test_string.py @@ -14,6 +14,9 @@ def test_safeunicode(): assert safeunicode(1) == u'1' assert safeunicode('中文') == u'中文' + assert safeunicode(u'hell0') == u'hello' + assert safeunicode(u'中文') == u'中文' + def test_lstrips(): assert lstrips('foobbar', '') == 'foobbar'