From d7fbb92b58f16e75bb4c3f75fc01f2801a49eb24 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Thu, 7 Feb 2008 13:46:14 +0000 Subject: [PATCH] Store more messages in DummyMailHost, in order to test NotificationTool. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19127 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/tests/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/product/ERP5Type/tests/utils.py b/product/ERP5Type/tests/utils.py index 691cdf89b3..23aef237a0 100644 --- a/product/ERP5Type/tests/utils.py +++ b/product/ERP5Type/tests/utils.py @@ -55,8 +55,11 @@ class DummyMailHost(MailHost): portal._setObject('MailHost', DummyMailHost('MailHost')) """ _last_message = () + _previous_message = () + _message_list = [] def _send( self, mfrom, mto, messageText ): """Record message in _last_message.""" + self._previous_message = self._last_message self._last_message = (mfrom, mto, messageText) class DummyTranslationService: -- 2.30.9