[web test] fix test failures introduced by 7431:cab99ccdb774
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 25 May 2011 18:46:09 +0200
changeset 7439 8e1c58a212ad
parent 7438 ff6ae47bb688
child 7440 539de926ec9d
[web test] fix test failures introduced by 7431:cab99ccdb774
devtools/testlib.py
--- a/devtools/testlib.py	Wed May 25 14:14:08 2011 +0200
+++ b/devtools/testlib.py	Wed May 25 18:46:09 2011 +0200
@@ -724,7 +724,8 @@
         self.assertEqual(session.login, origsession.login)
         self.assertEqual(session.anonymous_session, False)
         self.assertEqual(path, 'view')
-        self.assertEqual(params, {'__message': 'welcome %s !' % req.user.login})
+        msg = req.session.data[params['_cwmsgid']]
+        self.assertEqual(msg, 'welcome %s !' % req.user.login)
 
     def assertAuthFailure(self, req, nbsessions=0):
         self.app.connect(req)