Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…re left, though.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4614 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2cd6db682f1964e4249b747ebbf1519a8e47efd1 1 parent 18ecf9d
Jacob Kaplan-Moss authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  tests/modeltests/test_client/models.py
4  tests/modeltests/test_client/models.py
@@ -97,7 +97,7 @@ def test_view_with_login(self):
97 97
         
98 98
         # Request a page that requires a login
99 99
         response = self.client.login('/test_client/login_protected_view/', 'testclient', 'password')
100  
-        self.assertTrue(response)
  100
+        self.failUnless(response)
101 101
         self.assertEqual(response.status_code, 200)
102 102
         self.assertEqual(response.context['user'].username, 'testclient')
103 103
         self.assertEqual(response.template.name, 'Login Template')
@@ -106,7 +106,7 @@ def test_view_with_bad_login(self):
106 106
         "Request a page that is protected with @login, but use bad credentials"
107 107
 
108 108
         response = self.client.login('/test_client/login_protected_view/', 'otheruser', 'nopassword')
109  
-        self.assertFalse(response)
  109
+        self.failIf(response)
110 110
 
111 111
     def test_session_modifying_view(self):
112 112
         "Request a page that modifies the session"

0 notes on commit 2cd6db6

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