Ticket #11009: django_contrib_auth_tests_views.diff

File django_contrib_auth_tests_views.diff, 859 bytes (added by laureline.guerin@…, 16 years ago)

patch to fix the bug

  • contrib/auth/tests/views.py

     
    3636        settings.TEMPLATE_DIRS = self.old_TEMPLATE_DIRS
    3737
    3838class PasswordResetTest(AuthViewsTestCase):
    39 
    40     def setUp(self):
    41         self.old_LANGUAGES = settings.LANGUAGES
    42         self.old_LANGUAGE_CODE = settings.LANGUAGE_CODE
    43         settings.LANGUAGES = (('en', 'English'),)
    44         settings.LANGUAGE_CODE = 'en'
    45 
    46     def tearDown(self):
    47         settings.LANGUAGES = self.old_LANGUAGES
    48         settings.LANGUAGE_CODE = self.old_LANGUAGE_CODE
    49 
    5039    def test_email_not_found(self):
    5140        "Error is raised if the provided email address isn't currently registered"
    5241        response = self.client.get('/password_reset/')
Back to Top