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