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): ...@@ -93,8 +93,8 @@ class TestBusinessTemplate(ERP5TypeTestCase):
if bt.getTitle() == 'erp5_core': if bt.getTitle() == 'erp5_core':
core = bt core = bt
self.failUnless(core is not None) self.failUnless(core is not None)
self.failUnless(core.getBuildingState() == 'built') self.assertEquals(core.getBuildingState(), 'built')
self.failUnless(core.getInstallationState() == 'installed') self.assertEquals(core.getInstallationState(), 'installed')
def afterSetUp(self): def afterSetUp(self):
self.login() self.login()
...@@ -238,14 +238,14 @@ class TestBusinessTemplate(ERP5TypeTestCase): ...@@ -238,14 +238,14 @@ class TestBusinessTemplate(ERP5TypeTestCase):
pt.download(url='file:'+template_path, id='template_test') pt.download(url='file:'+template_path, id='template_test')
template = pt._getOb(id='template_test') template = pt._getOb(id='template_test')
template.install() template.install()
self.failUnless(template.getBuildingState() == 'built') self.assertEquals(template.getBuildingState(), 'built')
self.failUnless(template.getInstallationState() == 'installed') self.assertEquals(template.getInstallationState(), 'installed')
# FIXME: check installed objects here # FIXME: check installed objects here
template.uninstall() template.uninstall()
self.failUnless(template.getBuildingState() == 'built') self.assertEquals(template.getBuildingState(), 'built')
self.failUnless(template.getInstallationState() == 'not_installed') self.assertEquals(template.getInstallationState(), 'not_installed')
# FIXME: check uninstalled objects here # 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