Fixed an i18n test with native string

Refs commit 11f307a5a8.
This commit is contained in:
Claude Paroz 2014-09-21 17:28:37 +02:00
parent 11f307a5a8
commit aeb48b9bc5
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ from django.utils.six import PY3
from django.utils.translation import (activate, deactivate,
get_language, get_language_from_request, get_language_info,
to_locale, trans_real,
gettext_lazy,
gettext, gettext_lazy,
ugettext, ugettext_lazy,
ngettext_lazy,
ungettext_lazy,
@ -351,7 +351,7 @@ class TranslationTests(TestCase):
"""
with translation.override('de'):
self.assertEqual("", ugettext(""))
self.assertEqual(b"", gettext(b""))
self.assertEqual(str(""), gettext(str("")))
s = mark_safe("")
self.assertEqual(s, ugettext(s))