Commit 8486010d authored by Christophe Dumez's avatar Christophe Dumez

- added logMessage function to avoid redefining it in each unit-test


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7385 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bf9ccdd9
...@@ -245,6 +245,13 @@ class ERP5TypeTestCase(PortalTestCase): ...@@ -245,6 +245,13 @@ class ERP5TypeTestCase(PortalTestCase):
""" """
return () return ()
def logMessage(self):
"""
Shortcut function to log a message
"""
ZopeTestCase._print('\n%s ' % message)
LOG('Testing ... ',0,message)
# Utility methods specific to ERP5Type # Utility methods specific to ERP5Type
def getTemplateTool(self): def getTemplateTool(self):
return getToolByName(self.getPortal(), 'portal_templates', None) return getToolByName(self.getPortal(), 'portal_templates', None)
......
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