def tearDown(self): mm_cfg.SMTPPORT = self._origport mm_cfg.SMTP_MAX_SESSIONS_PER_CONNECTION = self._sessions EmailBase.tearDown(self)
def setUp(self): self._origport = mm_cfg.SMTPPORT self._sessions = mm_cfg.SMTP_MAX_SESSIONS_PER_CONNECTION mm_cfg.SMTPPORT = TESTPORT mm_cfg.SMTP_MAX_SESSIONS_PER_CONNECTION = 1 EmailBase.setUp(self)