Changeset 1719 in products for quintagroup.plonecomments/trunk/quintagroup/plonecomments
- Timestamp:
- Feb 11, 2010 5:06:25 PM (14 years ago)
- Location:
- quintagroup.plonecomments/trunk/quintagroup/plonecomments/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonecomments/trunk/quintagroup/plonecomments/tests/testQPloneCommentsNotification.py
r1633 r1719 187 187 reply.deleteDiscussion() 188 188 mails = [str(m) for m in self.portal.MailHost.messages] 189 subject = str(Header('Your comment on Doc was not approved', 'utf-8'))189 subject = 'Your comment on Doc was not approved' 190 190 self.failUnless([1 for m in mails if REXP_SUBJ.search(m) and REXP_SUBJ.search(m).group(1)==subject], 191 191 'No notification for rejecting comment.' % properties) -
quintagroup.plonecomments/trunk/quintagroup/plonecomments/tests/testQPloneCommentsNotificationRecipients.py
r1633 r1719 93 93 messages = [str(m) for m in mails if REXP_TO.search(str(m)) and REXP_TO.search(str(m)).group(1)==to] 94 94 self.failUnless(len(messages) > 0, "No message sent to '%s' recipient" % to) 95 mangled = str(Header(subj, 'utf-8')) 96 self.failUnless([1 for m in messages if REXP_SUBJ.search(m) and REXP_SUBJ.search(m).group(1)==mangled],\ 95 self.failUnless([1 for m in messages if REXP_SUBJ.search(m) and REXP_SUBJ.search(m).group(1)==subj],\ 97 96 "There is no message for '%s' recipient with '%s' subject" % (to,subj)) 98 97
Note: See TracChangeset
for help on using the changeset viewer.