summaryrefslogtreecommitdiff
path: root/tests/test_client_regress
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2017-01-26 20:58:33 +0100
committerClaude Paroz <claude@2xlibre.net>2017-02-07 09:04:04 +0100
commitc651331b34b7c3841c126959e6e52879bc6f0834 (patch)
tree3f93aeb92fc91dcc61649b46d9f26f7aaaff978b /tests/test_client_regress
parent4353640ea9495d58fabd0357253b82de3b069408 (diff)
downloaddjango-c651331b34b7c3841c126959e6e52879bc6f0834.tar.gz
Converted usage of ugettext* functions to their gettext* aliases
Thanks Tim Graham for the review.
Diffstat (limited to 'tests/test_client_regress')
-rw-r--r--tests/test_client_regress/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_client_regress/tests.py b/tests/test_client_regress/tests.py
index e4fd2bb8fe..1231568c37 100644
--- a/tests/test_client_regress/tests.py
+++ b/tests/test_client_regress/tests.py
@@ -17,7 +17,7 @@ from django.test import (
from django.test.client import RedirectCycleError, RequestFactory, encode_file
from django.test.utils import ContextList
from django.urls import NoReverseMatch, reverse
-from django.utils.translation import ugettext_lazy
+from django.utils.translation import gettext_lazy
from .models import CustomUser
from .views import CustomTestException
@@ -154,11 +154,11 @@ class AssertContainsTests(SimpleTestCase):
def test_nontext_contains(self):
r = self.client.get('/no_template_view/')
- self.assertContains(r, ugettext_lazy('once'))
+ self.assertContains(r, gettext_lazy('once'))
def test_nontext_not_contains(self):
r = self.client.get('/no_template_view/')
- self.assertNotContains(r, ugettext_lazy('never'))
+ self.assertNotContains(r, gettext_lazy('never'))
def test_assert_contains_renders_template_response(self):
"""