devtools/testlib.py
changeset 9626 90fb0623bb70
parent 9606 bf0d8df2aefb
child 9627 91166f6fd2c9
equal deleted inserted replaced
9625:6baaca81c629 9626:90fb0623bb70
   940         authm = sh.session_manager.authmanager
   940         authm = sh.session_manager.authmanager
   941         authm.anoninfo = self.vreg.config.anonymous_user()
   941         authm.anoninfo = self.vreg.config.anonymous_user()
   942         authm.anoninfo = authm.anoninfo[0], {'password': authm.anoninfo[1]}
   942         authm.anoninfo = authm.anoninfo[0], {'password': authm.anoninfo[1]}
   943         # not properly cleaned between tests
   943         # not properly cleaned between tests
   944         self.open_sessions = sh.session_manager._sessions = {}
   944         self.open_sessions = sh.session_manager._sessions = {}
   945         return req, self.websession
   945         return req, self.session
   946 
   946 
   947     def assertAuthSuccess(self, req, origsession, nbsessions=1):
   947     def assertAuthSuccess(self, req, origsession, nbsessions=1):
   948         sh = self.app.session_handler
   948         sh = self.app.session_handler
   949         session = self.app.get_session(req)
   949         session = self.app.get_session(req)
   950         clt_cnx = repoapi.ClientConnection(session)
   950         clt_cnx = repoapi.ClientConnection(session)