Ticket #11009: django_contrib_auth_tests_views.diff
File django_contrib_auth_tests_views.diff, 859 bytes (added by , 16 years ago) |
---|
-
contrib/auth/tests/views.py
36 36 settings.TEMPLATE_DIRS = self.old_TEMPLATE_DIRS 37 37 38 38 class PasswordResetTest(AuthViewsTestCase): 39 40 def setUp(self):41 self.old_LANGUAGES = settings.LANGUAGES42 self.old_LANGUAGE_CODE = settings.LANGUAGE_CODE43 settings.LANGUAGES = (('en', 'English'),)44 settings.LANGUAGE_CODE = 'en'45 46 def tearDown(self):47 settings.LANGUAGES = self.old_LANGUAGES48 settings.LANGUAGE_CODE = self.old_LANGUAGE_CODE49 50 39 def test_email_not_found(self): 51 40 "Error is raised if the provided email address isn't currently registered" 52 41 response = self.client.get('/password_reset/')