--- a/devtools/testlib.py Fri May 13 10:09:52 2011 +0200
+++ b/devtools/testlib.py Fri May 13 10:09:54 2011 +0200
@@ -495,6 +495,10 @@
entity.cw_attr_cache.pop('modification_date', None)
self.failUnless(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)
# workflow utilities #######################################################