summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2011-09-05 17:43:18 -0500
committerMichael Merickel <michael@merickel.org>2011-09-05 17:43:18 -0500
commit863196d54e3d8329f9bd1c60a1f32f8e1a3f1dad (patch)
tree82a8313abbf4cccf0d810641d01d855ca1af75c6
parent5620e85d6d2d7fe2588a8fa0fad98d60dc44f3d9 (diff)
downloadpyramid-863196d54e3d8329f9bd1c60a1f32f8e1a3f1dad.tar.gz
pyramid-863196d54e3d8329f9bd1c60a1f32f8e1a3f1dad.tar.bz2
pyramid-863196d54e3d8329f9bd1c60a1f32f8e1a3f1dad.zip
Updated tests cases to send the request to the callback.
-rw-r--r--pyramid/tests/test_authentication.py6
1 files 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):