mirror of
https://github.com/django/django.git
synced 2025-07-05 10:19:20 +00:00
[1.1.X] Made Python 2.3 compatibility fixes for some recent test additions.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12678 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
cc65ac9e2b
commit
1fedc0b9eb
@ -205,7 +205,7 @@ class LoginTest(AuthViewsTestCase):
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
self.assertEquals(response.status_code, 302)
|
self.assertEquals(response.status_code, 302)
|
||||||
self.assertFalse(bad_url in response['Location'], "%s should be blocked" % bad_url)
|
self.failIf(bad_url in response['Location'], "%s should be blocked" % bad_url)
|
||||||
|
|
||||||
# Now, these URLs have an other URL as a GET parameter and therefore
|
# Now, these URLs have an other URL as a GET parameter and therefore
|
||||||
# should be allowed
|
# should be allowed
|
||||||
@ -222,7 +222,7 @@ class LoginTest(AuthViewsTestCase):
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
self.assertEquals(response.status_code, 302)
|
self.assertEquals(response.status_code, 302)
|
||||||
self.assertTrue('/view/?param=%s' % url_ in response['Location'], "/view/?param=%s should be allowed" % url_)
|
self.failUnless('/view/?param=%s' % url_ in response['Location'], "/view/?param=%s should be allowed" % url_)
|
||||||
|
|
||||||
|
|
||||||
class LogoutTest(AuthViewsTestCase):
|
class LogoutTest(AuthViewsTestCase):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user