Author: mtredinnick
Date: 2008-08-27 01:02:13 -0500 (Wed, 27 Aug 2008)
New Revision: 8613
Modified:
django/trunk/django/contrib/auth/tests/views.py
Log:
Fixed #8552 -- Use the LOGIN_REDIRECT_URL setting in the auth tests, rather
than hard-coding the value.
This enables things to work properly when installed in other configurations.
Patch from aeby.
Modified: django/trunk/django/contrib/auth/tests/views.py
===================================================================
--- django/trunk/django/contrib/auth/tests/views.py 2008-08-27 05:57:27 UTC
(rev 8612)
+++ django/trunk/django/contrib/auth/tests/views.py 2008-08-27 06:02:13 UTC
(rev 8613)
@@ -113,7 +113,7 @@
}
)
self.assertEquals(response.status_code, 302)
- self.assert_(response['Location'].endswith('/accounts/profile/'))
+
self.assert_(response['Location'].endswith(settings.LOGIN_REDIRECT_URL))
def fail_login(self, password='password'):
response = self.client.post('/login/', {
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---