Commit d7fbb92b authored by Romain Courteaud's avatar Romain Courteaud

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
parent b3044b90
...@@ -55,8 +55,11 @@ class DummyMailHost(MailHost): ...@@ -55,8 +55,11 @@ class DummyMailHost(MailHost):
portal._setObject('MailHost', DummyMailHost('MailHost')) portal._setObject('MailHost', DummyMailHost('MailHost'))
""" """
_last_message = () _last_message = ()
_previous_message = ()
_message_list = []
def _send( self, mfrom, mto, messageText ): def _send( self, mfrom, mto, messageText ):
"""Record message in _last_message.""" """Record message in _last_message."""
self._previous_message = self._last_message
self._last_message = (mfrom, mto, messageText) self._last_message = (mfrom, mto, messageText)
class DummyTranslationService: class DummyTranslationService:
......
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