mirror of
https://github.com/django/django.git
synced 2024-12-23 09:36:06 +00:00
Refs #28711 -- Replaced ugettext_lazy() with gettext_lazy() in a test.
As per c651331b34
.
This commit is contained in:
parent
d997ab7764
commit
1399f8ae77
@ -1,7 +1,7 @@
|
|||||||
from django.template.defaultfilters import unordered_list
|
from django.template.defaultfilters import unordered_list
|
||||||
from django.test import SimpleTestCase
|
from django.test import SimpleTestCase
|
||||||
from django.utils.safestring import mark_safe
|
from django.utils.safestring import mark_safe
|
||||||
from django.utils.translation import ugettext_lazy
|
from django.utils.translation import gettext_lazy
|
||||||
|
|
||||||
from ..utils import setup
|
from ..utils import setup
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ class FunctionTests(SimpleTestCase):
|
|||||||
|
|
||||||
def test_list_gettext(self):
|
def test_list_gettext(self):
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
unordered_list(['item 1', ugettext_lazy('item 2')]),
|
unordered_list(['item 1', gettext_lazy('item 2')]),
|
||||||
'\t<li>item 1</li>\n\t<li>item 2</li>'
|
'\t<li>item 1</li>\n\t<li>item 2</li>'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user