Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed a few Python2.3-related bugs in the tests (see #3396). A few mo…

…re left, though.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2cd6db682f1964e4249b747ebbf1519a8e47efd1 1 parent 18ecf9d
@jacobian jacobian authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/modeltests/test_client/
4 tests/modeltests/test_client/
@@ -97,7 +97,7 @@ def test_view_with_login(self):
# Request a page that requires a login
response = self.client.login('/test_client/login_protected_view/', 'testclient', 'password')
- self.assertTrue(response)
+ self.failUnless(response)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.context['user'].username, 'testclient')
self.assertEqual(, 'Login Template')
@@ -106,7 +106,7 @@ def test_view_with_bad_login(self):
"Request a page that is protected with @login, but use bad credentials"
response = self.client.login('/test_client/login_protected_view/', 'otheruser', 'nopassword')
- self.assertFalse(response)
+ self.failIf(response)
def test_session_modifying_view(self):
"Request a page that modifies the session"

0 comments on commit 2cd6db6

Please sign in to comment.
Something went wrong with that request. Please try again.