# HG changeset patch # User Sylvain Thénault # Date 1294658890 -3600 # Node ID 90d687bd4c5283643f2b0a58fdf306e1dffaa9c7 # Parent e70ca9abfc51574906dc926af71d8b50b16b884f [web test] fix authentication test: session cookie should now be computed by the session handler (changed in cw 3.10.6) diff -r e70ca9abfc51 -r 90d687bd4c52 web/test/unittest_application.py --- a/web/test/unittest_application.py Mon Jan 10 12:28:09 2011 +0100 +++ b/web/test/unittest_application.py Mon Jan 10 12:28:10 2011 +0100 @@ -368,8 +368,9 @@ # preparing the suite of the test # set session id in cookie cookie = Cookie.SimpleCookie() - cookie['__session'] = req.session.sessionid - req._headers['Cookie'] = cookie['__session'].OutputString() + sessioncookie = self.app.session_handler.session_cookie(req) + cookie[sessioncookie] = req.session.sessionid + req._headers['Cookie'] = cookie[sessioncookie].OutputString() clear_cache(req, 'get_authorization') # reset session as if it was a new incoming request req.session = req.cnx = None