Michael Merickel
2011-09-06 863196d54e3d8329f9bd1c60a1f32f8e1a3f1dad
Updated tests cases to send the request to the callback.
1 files modified
6 ■■■■ changed files
pyramid/tests/test_authentication.py 6 ●●●● patch | view | raw | blame | history
pyramid/tests/test_authentication.py
@@ -617,7 +617,7 @@
        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 @@
        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 @@
        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):