Commit 1a9e2cab authored by Sebastien Robin's avatar Sebastien Robin

we should create a new site for each different test, not only if they have a...

we should create a new site for each different test, not only if they have a different list of business templates, this prevent errors when we commit a transaction


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2777 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 437e5a7b
......@@ -90,7 +90,7 @@ class ERP5TypeTestCase(PortalTestCase):
different business templates.
"""
m = md5.new()
m.update(repr(self.getBusinessTemplateList()))
m.update(repr(self.getBusinessTemplateList())+ self.getTitle())
uid = m.hexdigest()
return portal_name + '_' + uid
......@@ -204,6 +204,9 @@ class ERP5TypeTestCase(PortalTestCase):
def getPortalId(self):
return self.getPortal().getId()
def getDomainTool(self):
return getToolByName(self.getPortal(), 'portal_domains', None)
def getAlarmTool(self):
return getattr(self.getPortal(), 'portal_alarms', None)
......@@ -227,6 +230,7 @@ class ERP5TypeTestCase(PortalTestCase):
count -= 1
self.failUnless(count > 0)
def failIfDifferentSet(self, a,b):
LOG('failIfDifferentSet',0,'a:%s b:%s' % (repr(a),repr(b)))
for i in a:
......
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