# HG changeset patch # User Julien Cristau # Date 1389792107 -3600 # Node ID 5027afeb5739f72c63efb84a60231f344c31d205 # Parent 76c0c96557f81d77ed4b9719f6ce6c035bda7981 [testlib] Fix assertMessageEqual assertEqual(msg, msg) had a hard time failing. diff -r 76c0c96557f8 -r 5027afeb5739 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 #######################################################