Commit 16a7187b authored by Jérome Perrin's avatar Jérome Perrin

improve failIfDifferentSet default message.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10102 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2f29f638
...@@ -435,14 +435,15 @@ class ERP5TypeTestCase(PortalTestCase): ...@@ -435,14 +435,15 @@ class ERP5TypeTestCase(PortalTestCase):
from Products.CMFActivity.Activity.Queue import VALIDATION_ERROR_DELAY from Products.CMFActivity.Activity.Queue import VALIDATION_ERROR_DELAY
portal_activities.timeShift(3 * VALIDATION_ERROR_DELAY) portal_activities.timeShift(3 * VALIDATION_ERROR_DELAY)
def failIfDifferentSet(self, a, b, msg=""): def failIfDifferentSet(self, a, b, msg=""):
LOG('failIfDifferentSet',0,'a:%s b:%s' % (repr(a),repr(b))) if not msg:
msg='%r != %r' % (a, b)
for i in a: for i in a:
self.failUnless(i in b, msg) self.failUnless(i in b, msg)
for i in b: for i in b:
self.failUnless(i in a, msg) self.failUnless(i in a, msg)
self.assertEquals(len(a), len(b), msg) self.assertEquals(len(a), len(b), msg)
assertSameSet = failIfDifferentSet
def setupERP5Site( business_template_list=(), def setupERP5Site( business_template_list=(),
app=None, app=None,
......
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