[testlib] Fix assertMessageEqual stable
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 15 Jan 2014 14:21:47 +0100
branchstable
changeset 9424 5027afeb5739
parent 9423 76c0c96557f8
child 9425 d7e8293fa4de
[testlib] Fix assertMessageEqual assertEqual(msg, msg) had a hard time failing.
devtools/testlib.py
--- a/devtools/testlib.py	Mon Jan 06 13:45:47 2014 +0100
+++ b/devtools/testlib.py	Wed Jan 15 14:21:47 2014 +0100
@@ -525,9 +525,9 @@
         it2 = set(getattr(x, 'eid', x) for x in it2)
         super(CubicWebTC, self).assertItemsEqual(it1, it2, *args, **kwargs)
 
-    def assertMessageEqual(self, req, params, msg):
+    def assertMessageEqual(self, req, params, expected_msg):
         msg = req.session.data[params['_cwmsgid']]
-        self.assertEqual(msg, msg)
+        self.assertEqual(expected_msg, msg)
 
     # workflow utilities #######################################################