[web test] fix authentication test: session cookie should now be computed by the session handler (changed in cw 3.10.6)
--- 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