diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2014-06-02 20:59:28 +0300 |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2014-06-02 20:59:28 +0300 |
commit | e49b7e02b2150413d2e78db709277fae0887be46 (patch) | |
tree | 6c39946f2b4aca080c75274f97ec263f793ae012 /mediagoblin/tests/test_util.py | |
parent | a80c74bbcc6ac0208cfef725a441810a29876cff (diff) | |
download | mediagoblin-e49b7e02b2150413d2e78db709277fae0887be46.tar.lz mediagoblin-e49b7e02b2150413d2e78db709277fae0887be46.tar.xz mediagoblin-e49b7e02b2150413d2e78db709277fae0887be46.zip |
Use six.text_type instead of unicode().
I will be switch to use ``from __future__ import unicode_literals`` later.
Diffstat (limited to 'mediagoblin/tests/test_util.py')
-rw-r--r-- | mediagoblin/tests/test_util.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mediagoblin/tests/test_util.py b/mediagoblin/tests/test_util.py index 9d9b1c16..e108e9bb 100644 --- a/mediagoblin/tests/test_util.py +++ b/mediagoblin/tests/test_util.py @@ -16,6 +16,8 @@ import email +import six + from mediagoblin.tools import common, url, translate, mail, text, testing testing._activate_testing() @@ -117,13 +119,13 @@ def test_gettext_lazy_proxy(): orig = u"Password" set_thread_locale("es") - p1 = unicode(proxy) + p1 = six.text_type(proxy) p1_should = pass_to_ugettext(orig) assert p1_should != orig, "Test useless, string not translated" assert p1 == p1_should set_thread_locale("sv") - p2 = unicode(proxy) + p2 = six.text_type(proxy) p2_should = pass_to_ugettext(orig) assert p2_should != orig, "Test broken, string not translated" assert p2 == p2_should |