From c651331b34b7c3841c126959e6e52879bc6f0834 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Thu, 26 Jan 2017 20:58:33 +0100 Subject: Converted usage of ugettext* functions to their gettext* aliases Thanks Tim Graham for the review. --- tests/basic/tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/basic') diff --git a/tests/basic/tests.py b/tests/basic/tests.py index 571088da40..12da117edf 100644 --- a/tests/basic/tests.py +++ b/tests/basic/tests.py @@ -9,7 +9,7 @@ from django.test import ( SimpleTestCase, TestCase, TransactionTestCase, skipIfDBFeature, skipUnlessDBFeature, ) -from django.utils.translation import ugettext_lazy +from django.utils.translation import gettext_lazy from .models import Article, ArticleSelectOnSave, SelfRef @@ -310,13 +310,13 @@ class ModelTest(TestCase): pub_date__year=2008).extra(select={'dashed-value': '1', 'undashedvalue': '2'}) self.assertEqual(articles[0].undashedvalue, 2) - def test_create_relation_with_ugettext_lazy(self): + def test_create_relation_with_gettext_lazy(self): """ - ugettext_lazy objects work when saving model instances + gettext_lazy objects work when saving model instances through various methods. Refs #10498. """ notlazy = 'test' - lazy = ugettext_lazy(notlazy) + lazy = gettext_lazy(notlazy) Article.objects.create(headline=lazy, pub_date=datetime.now()) article = Article.objects.get() self.assertEqual(article.headline, notlazy) -- cgit v1.3