[testlib] Drop override of assertItemsEqual method stable
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 12 Mar 2014 08:56:31 +0100
branchstable
changeset 9594 e549ef4be945
parent 9593 48a84fb4f301
child 9595 240a620b9cd3
[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.
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)