diff --git a/openerp/tests/common.py b/openerp/tests/common.py index 0f03c3f1dc3..a9a6c1261d0 100644 --- a/openerp/tests/common.py +++ b/openerp/tests/common.py @@ -131,6 +131,10 @@ class BaseCase(unittest.TestCase): else: return self._assertRaises(exception) + def shortDescription(self): + doc = self._testMethodDoc + return doc and ' '.join(filter(None, map(str.strip, doc.splitlines()))) or None + class TransactionCase(BaseCase): """ TestCase in which each test method is run in its own transaction,