Commit 90fda2d3 authored by Jérome Perrin's avatar Jérome Perrin

Mailhost teardown

parent c4aa3bed
......@@ -267,6 +267,7 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
def _restoreMailHost(self):
"""Restore original Mail Host
"""
if hasattr(self.portal, 'MailHost'):
cls = self.portal.MailHost.__class__
if cls.__bases__[0] is DummyMailHostMixin:
cls.__bases__ = cls.__bases__[1:]
......
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