Fix user email notification test for Plone 3.

svn path=/plone.app.discussion/trunk/; revision=44737
This commit is contained in:
Timo Stollenwerk 2010-10-31 10:48:45 +00:00
parent fa6e380eaf
commit feec103b56

View File

@ -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)