From 863196d54e3d8329f9bd1c60a1f32f8e1a3f1dad Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Mon, 5 Sep 2011 17:43:18 -0500 Subject: Updated tests cases to send the request to the callback. --- pyramid/tests/test_authentication.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyramid/tests/test_authentication.py b/pyramid/tests/test_authentication.py index bb4040b35..ff96ae471 100644 --- a/pyramid/tests/test_authentication.py +++ b/pyramid/tests/test_authentication.py @@ -617,7 +617,7 @@ class TestAuthTktCookieHelper(unittest.TestCase): self.assertTrue(result) self.assertEqual(len(request.callbacks), 1) response = DummyResponse() - request.callbacks[0](None, response) + request.callbacks[0](request, response) self.assertEqual(len(response.headerlist), 3) self.assertEqual(response.headerlist[0][0], 'Set-Cookie') @@ -658,7 +658,7 @@ class TestAuthTktCookieHelper(unittest.TestCase): self.assertTrue(result) self.assertEqual(len(request.callbacks), 1) response = DummyResponse() - request.callbacks[0](None, response) + request.callbacks[0](request, response) self.assertEqual(len(response.headerlist), 0) def test_identify_cookie_reissue_revoked_by_remember(self): @@ -675,7 +675,7 @@ class TestAuthTktCookieHelper(unittest.TestCase): self.assertTrue(result) self.assertEqual(len(request.callbacks), 1) response = DummyResponse() - request.callbacks[0](None, response) + request.callbacks[0](request, response) self.assertEqual(len(response.headerlist), 0) def test_identify_cookie_reissue_with_tokens_default(self): -- cgit v1.2.3