Commit d3cdaa5b authored by Romain Courteaud's avatar Romain Courteaud

Replace failUnless by assertEquals if possible (easier to debug).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4248 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 123fb8a2
......@@ -93,8 +93,8 @@ class TestBusinessTemplate(ERP5TypeTestCase):
if bt.getTitle() == 'erp5_core':
core = bt
self.failUnless(core is not None)
self.failUnless(core.getBuildingState() == 'built')
self.failUnless(core.getInstallationState() == 'installed')
self.assertEquals(core.getBuildingState(), 'built')
self.assertEquals(core.getInstallationState(), 'installed')
def afterSetUp(self):
self.login()
......@@ -238,14 +238,14 @@ class TestBusinessTemplate(ERP5TypeTestCase):
pt.download(url='file:'+template_path, id='template_test')
template = pt._getOb(id='template_test')
template.install()
self.failUnless(template.getBuildingState() == 'built')
self.failUnless(template.getInstallationState() == 'installed')
self.assertEquals(template.getBuildingState(), 'built')
self.assertEquals(template.getInstallationState(), 'installed')
# FIXME: check installed objects here
template.uninstall()
self.failUnless(template.getBuildingState() == 'built')
self.failUnless(template.getInstallationState() == 'not_installed')
self.assertEquals(template.getBuildingState(), 'built')
self.assertEquals(template.getInstallationState(), 'not_installed')
# FIXME: check uninstalled objects here
......
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