diff --git a/product/ERP5/tests/testBusinessTemplate.py b/product/ERP5/tests/testBusinessTemplate.py index 034a0ac4f60dc437b61cc261d26d6798d6281e62..006bdaf5748367798c5a8752c2ebb64fa68f0ca2 100755 --- a/product/ERP5/tests/testBusinessTemplate.py +++ b/product/ERP5/tests/testBusinessTemplate.py @@ -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