devtools/testlib.py
changeset 8311 76a44a0d7f4b
parent 8128 0a927fe4541b
child 8312 6c2119509fac
--- a/devtools/testlib.py	Thu Mar 01 12:08:35 2012 +0100
+++ b/devtools/testlib.py	Thu Mar 15 17:42:31 2012 +0100
@@ -697,13 +697,11 @@
 
     def assertAuthSuccess(self, req, origsession, nbsessions=1):
         sh = self.app.session_handler
-        path, params = self.expect_redirect(lambda x: self.app.connect(x), req)
+        self.app.connect(req)
         session = req.session
         self.assertEqual(len(self.open_sessions), nbsessions, self.open_sessions)
         self.assertEqual(session.login, origsession.login)
         self.assertEqual(session.anonymous_session, False)
-        self.assertEqual(path, 'view')
-        self.assertMessageEqual(req, params, 'welcome %s !' % req.user.login)
 
     def assertAuthFailure(self, req, nbsessions=0):
         self.app.connect(req)