Commit 24c8ae12 authored by Jérome Perrin's avatar Jérome Perrin

support assertion message in failIfDifferentSet


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5951 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ce7277cb
......@@ -296,13 +296,13 @@ class ERP5TypeTestCase(PortalTestCase):
portal_activities.timeShift(3 * VALIDATION_ERROR_DELAY)
def failIfDifferentSet(self, a,b):
def failIfDifferentSet(self, a, b, msg=""):
LOG('failIfDifferentSet',0,'a:%s b:%s' % (repr(a),repr(b)))
for i in a:
self.failUnless(i in b)
self.failUnless(i in b, msg)
for i in b:
self.failUnless(i in a)
self.assertEquals(len(a),len(b))
self.failUnless(i in a, msg)
self.assertEquals(len(a), len(b), msg)
def setupERP5Site(business_template_list=(), app=None, portal_name=portal_name, title='',quiet=0,
......
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