# HG changeset patch # User Denis Laxalde # Date 1394610991 -3600 # Node ID e549ef4be945a16edc948ed9a60e73966b4a6fed # Parent 48a84fb4f301c3f76efa3a5069479fb1228ea500 [testlib] Drop override of assertItemsEqual method The override is not compatible with underlying (standard) method because it builds sets and rely on eid. Closes #3641111. diff -r 48a84fb4f301 -r e549ef4be945 devtools/testlib.py --- a/devtools/testlib.py Thu Mar 13 17:32:40 2014 +0100 +++ b/devtools/testlib.py Wed Mar 12 08:56:31 2014 +0100 @@ -537,11 +537,6 @@ entity.cw_attr_cache.pop('modification_date', None) self.assertTrue(entity.modification_date > olddate) - def assertItemsEqual(self, it1, it2, *args, **kwargs): - it1 = set(getattr(x, 'eid', x) for x in it1) - it2 = set(getattr(x, 'eid', x) for x in it2) - super(CubicWebTC, self).assertItemsEqual(it1, it2, *args, **kwargs) - def assertMessageEqual(self, req, params, expected_msg): msg = req.session.data[params['_cwmsgid']] self.assertEqual(expected_msg, msg)