[testlib] Fix assertMessageEqual
assertEqual(msg, msg) had a hard time failing.
--- 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 #######################################################