Ticket #8523: 8523.prepend_test_templates_to_settings_templates.patch
File 8523.prepend_test_templates_to_settings_templates.patch, 824 bytes (added by , 16 years ago) |
---|
-
django/contrib/auth/tests/views.py
101 101 os.path.dirname(__file__), 102 102 'templates' 103 103 ) 104 ,) 104 ,) + tuple(settings.TEMPLATE_DIRS) 105 105 106 106 def tearDown(self): 107 107 settings.TEMPLATE_DIRS = self.old_TEMPLATE_DIRS … … 113 113 } 114 114 ) 115 115 self.assertEquals(response.status_code, 302) 116 self.assert_(response['Location'].endswith( '/accounts/profile/'))116 self.assert_(response['Location'].endswith(settings.LOGIN_REDIRECT_URL)) 117 117 118 118 def fail_login(self, password='password'): 119 119 response = self.client.post('/login/', {