diff --git a/product/ERP5Type/tests/ERP5TypeTestCase.py b/product/ERP5Type/tests/ERP5TypeTestCase.py index c831b9955bf450e0acd9b68edae713201d5908b0..659ca99c0341956cc1c3d438d238c339b2da6afd 100644 --- a/product/ERP5Type/tests/ERP5TypeTestCase.py +++ b/product/ERP5Type/tests/ERP5TypeTestCase.py @@ -765,11 +765,7 @@ class ERP5TypeTestCase(ProcessingNodeTestCase, PortalTestCase): def failIfDifferentSet(self, a, b, msg=""): if not msg: msg='%r != %r' % (a, b) - for i in a: - self.failUnless(i in b, msg) - for i in b: - self.failUnless(i in a, msg) - self.assertEquals(len(a), len(b), msg) + self.assertEquals(set(a), set(b), msg) assertSameSet = failIfDifferentSet def assertWorkflowTransitionFails(self, object, workflow_id, transition_id,