Commit a29872df authored by Jérome Perrin's avatar Jérome Perrin

make test_01_HasEverything test alarm tool, not other tools which are already

tested.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19047 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 589dd2eb
...@@ -64,16 +64,13 @@ class TestAlarm(ERP5TypeTestCase): ...@@ -64,16 +64,13 @@ class TestAlarm(ERP5TypeTestCase):
return "Alarm" return "Alarm"
def test_01_HasEverything(self, quiet=0, run=run_all_test): def test_01_HasEverything(self, quiet=0, run=run_all_test):
# Test if portal_synchronizations was created # Test if portal_alarms was created
if not run: return if not run: return
if not quiet: if not quiet:
ZopeTestCase._print('\nTest Has Everything ') ZopeTestCase._print('\nTest Has Everything ')
LOG('Testing... ',0,'testHasEverything') LOG('Testing... ',0,'testHasEverything')
self.failUnless(self.getCategoryTool()!=None) self.assertNotEquals(self.portal._getOb('portal_alarms', None), None)
self.failUnless(self.getSimulationTool()!=None) self.assertNotEquals(self.portal.portal_types.getTypeInfo('Alarm Tool'), None)
self.failUnless(self.getTypeTool()!=None)
self.failUnless(self.getSQLConnection()!=None)
self.failUnless(self.getCatalogTool()!=None)
#def populate(self, quiet=1, run=1): #def populate(self, quiet=1, run=1):
def afterSetUp(self, quiet=1, run=1): def afterSetUp(self, quiet=1, run=1):
......
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