summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-03-26 20:22:02 +0000
committerClaude Paroz <claude@2xlibre.net>2012-03-26 20:22:02 +0000
commit0fe9f3ce275e93d68b17b9e16b77ef1850665076 (patch)
tree95c512c976f926718e467f4291082c00f44dbba7
parent00ec03fd4457ce6a90868195f65ef9c206c5fcc7 (diff)
Make auth test pass even when LANGUAGE_CODE is not 'en'. Refs #17980. Thanks wassup for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/auth/tests/forms.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/contrib/auth/tests/forms.py b/django/contrib/auth/tests/forms.py
index 2397b52aff..3c890d4c8a 100644
--- a/django/contrib/auth/tests/forms.py
+++ b/django/contrib/auth/tests/forms.py
@@ -9,6 +9,7 @@ from django.test import TestCase
from django.test.utils import override_settings
from django.utils.encoding import force_unicode
from django.utils import translation
+from django.utils.translation import ugettext as _
class UserCreationFormTest(TestCase):
@@ -333,6 +334,6 @@ class PasswordResetFormTest(TestCase):
form = PasswordResetForm(data)
self.assertFalse(form.is_valid())
self.assertEqual(form["email"].errors,
- [u"The user account associated with this e-mail address cannot reset the password."])
+ [_(u"The user account associated with this e-mail address cannot reset the password.")])
PasswordResetFormTest = override_settings(USE_TZ=False)(PasswordResetFormTest)