Commit 92b36239 authored by Łukasz Nowak's avatar Łukasz Nowak

- follow notification tool change of From header


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28240 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent db750600
...@@ -204,7 +204,7 @@ class TestBug(ERP5TypeTestCase): ...@@ -204,7 +204,7 @@ class TestBug(ERP5TypeTestCase):
last_message = self.portal.MailHost._last_message last_message = self.portal.MailHost._last_message
self.assertNotEquals((), last_message) self.assertNotEquals((), last_message)
mfrom, mto, messageText = last_message mfrom, mto, messageText = last_message
self.assertEquals('postmaster@localhost', mfrom) self.assertEquals('Portal Administrator <postmaster@localhost>', mfrom)
self.assertEquals(['person1@localhost'], mto) self.assertEquals(['person1@localhost'], mto)
self.failUnless(bug.getTitle().replace(" ", "_") in messageText) self.failUnless(bug.getTitle().replace(" ", "_") in messageText)
......
...@@ -175,7 +175,7 @@ class TestPasswordTool(ERP5TypeTestCase): ...@@ -175,7 +175,7 @@ class TestPasswordTool(ERP5TypeTestCase):
last_message = self.portal.MailHost._last_message last_message = self.portal.MailHost._last_message
self.assertNotEquals((), last_message) self.assertNotEquals((), last_message)
mfrom, mto, messageText = last_message mfrom, mto, messageText = last_message
self.assertEquals('site@example.invalid', mfrom) self.assertEquals('Portal Administrator <site@example.invalid>', mfrom)
self.assertEquals(['userA@example.invalid'], mto) self.assertEquals(['userA@example.invalid'], mto)
......
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