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

reorganise methods


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19049 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0748731e
...@@ -63,15 +63,6 @@ class TestAlarm(ERP5TypeTestCase): ...@@ -63,15 +63,6 @@ class TestAlarm(ERP5TypeTestCase):
def getTitle(self): def getTitle(self):
return "Alarm" return "Alarm"
def test_01_HasEverything(self, quiet=0, run=run_all_test):
# Test if portal_alarms was created
if not run: return
if not quiet:
ZopeTestCase._print('\nTest Has Everything ')
LOG('Testing... ',0,'testHasEverything')
self.assertNotEquals(self.portal._getOb('portal_alarms', None), None)
self.assertNotEquals(self.portal.portal_types.getTypeInfo('Alarm Tool'), None)
def afterSetUp(self, quiet=1, run=1): def afterSetUp(self, quiet=1, run=1):
self.login() self.login()
...@@ -88,6 +79,16 @@ class TestAlarm(ERP5TypeTestCase): ...@@ -88,6 +79,16 @@ class TestAlarm(ERP5TypeTestCase):
user = uf.getUserById('seb').__of__(uf) user = uf.getUserById('seb').__of__(uf)
newSecurityManager(None, user) newSecurityManager(None, user)
def test_01_HasEverything(self, quiet=0, run=run_all_test):
# Test if portal_alarms was created
if not run: return
if not quiet:
ZopeTestCase._print('\nTest Has Everything ')
LOG('Testing... ',0,'testHasEverything')
self.assertNotEquals(self.portal._getOb('portal_alarms', None), None)
self.assertNotEquals(self.portal.portal_types.getTypeInfo('Alarm Tool'), None)
def test_02_Initialization(self, quiet=0, run=run_all_test): def test_02_Initialization(self, quiet=0, run=run_all_test):
""" """
Test some basic things right after the creation Test some basic things right after the creation
......
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