Fix user email notification test for Plone 3.
svn path=/plone.app.discussion/trunk/; revision=44737
This commit is contained in:
parent
fa6e380eaf
commit
feec103b56
@ -69,7 +69,7 @@ class TestUserNotificationUnit(PloneTestCase):
|
|||||||
self.conversation.addComment(comment)
|
self.conversation.addComment(comment)
|
||||||
self.assertEquals(len(self.mailhost.messages), 1)
|
self.assertEquals(len(self.mailhost.messages), 1)
|
||||||
self.failUnless(self.mailhost.messages[0])
|
self.failUnless(self.mailhost.messages[0])
|
||||||
msg = self.mailhost.messages[0]
|
msg = str(self.mailhost.messages[0])
|
||||||
self.failUnless('To: john@plone.test' in msg)
|
self.failUnless('To: john@plone.test' in msg)
|
||||||
self.failUnless('From: portal@plone.test' in msg)
|
self.failUnless('From: portal@plone.test' in msg)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user