Author: claudep
Date: 2012-03-26 13:22:02 -0700 (Mon, 26 Mar 2012)
New Revision: 17811

Modified:
   django/trunk/django/contrib/auth/tests/forms.py
Log:
Make auth test pass even when LANGUAGE_CODE is not 'en'. Refs #17980. Thanks 
wassup for the report.

Modified: django/trunk/django/contrib/auth/tests/forms.py
===================================================================
--- django/trunk/django/contrib/auth/tests/forms.py     2012-03-26 15:43:11 UTC 
(rev 17810)
+++ django/trunk/django/contrib/auth/tests/forms.py     2012-03-26 20:22:02 UTC 
(rev 17811)
@@ -9,6 +9,7 @@
 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 @@
         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)

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to