diff --git a/openerp/tests/common.py b/openerp/tests/common.py index 07f95eac800..3cb271e075d 100644 --- a/openerp/tests/common.py +++ b/openerp/tests/common.py @@ -82,11 +82,13 @@ def post_install(flag): class BaseCase(unittest.TestCase): """ Subclass of TestCase for common OpenERP-specific code. - + This class is abstract and expects self.registry, self.cr and self.uid to be initialized by subclasses. """ + longMessage = True # more verbose error message by default: https://www.odoo.com/r/Vmh + def cursor(self): return self.registry.cursor()