mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
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
This commit is contained in:
parent
00ec03fd44
commit
0fe9f3ce27
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user