Commit ee454a89 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Use set to compare sets.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39306 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8bffc6c0
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment