From 4881a4ffb04bf8a63a604525976ea555772fe38d Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Fri, 15 Aug 2008 14:58:47 +0000 Subject: [PATCH] Use failIf() instead of assertFalse() so that tests work with python 2.3. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8379 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/admin_views/tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/regressiontests/admin_views/tests.py b/tests/regressiontests/admin_views/tests.py index 2bdce7c07d..3101353aa2 100644 --- a/tests/regressiontests/admin_views/tests.py +++ b/tests/regressiontests/admin_views/tests.py @@ -500,7 +500,7 @@ class SecureViewTest(TestCase): self.failUnlessEqual(request.status_code, 200) login = self.client.post('/test_admin/admin/secure-view/', self.super_login) self.assertRedirects(login, '/test_admin/admin/secure-view/') - self.assertFalse(login.context) + self.failIf(login.context) self.client.get('/test_admin/admin/logout/') # Test if user enters e-mail address @@ -522,7 +522,7 @@ class SecureViewTest(TestCase): self.failUnlessEqual(request.status_code, 200) login = self.client.post('/test_admin/admin/secure-view/', self.adduser_login) self.assertRedirects(login, '/test_admin/admin/secure-view/') - self.assertFalse(login.context) + self.failIf(login.context) self.client.get('/test_admin/admin/logout/') # Change User @@ -530,7 +530,7 @@ class SecureViewTest(TestCase): self.failUnlessEqual(request.status_code, 200) login = self.client.post('/test_admin/admin/secure-view/', self.changeuser_login) self.assertRedirects(login, '/test_admin/admin/secure-view/') - self.assertFalse(login.context) + self.failIf(login.context) self.client.get('/test_admin/admin/logout/') # Delete User @@ -538,7 +538,7 @@ class SecureViewTest(TestCase): self.failUnlessEqual(request.status_code, 200) login = self.client.post('/test_admin/admin/secure-view/', self.deleteuser_login) self.assertRedirects(login, '/test_admin/admin/secure-view/') - self.assertFalse(login.context) + self.failIf(login.context) self.client.get('/test_admin/admin/logout/') # Regular User should not be able to login.