diff --git a/openerp/tests/common.py b/openerp/tests/common.py index b28e5a832e5..796605c6d81 100644 --- a/openerp/tests/common.py +++ b/openerp/tests/common.py @@ -80,11 +80,13 @@ def post_install(flag): class BaseCase(unittest2.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()