Changeset 1719 in products


Ignore:
Timestamp:
Feb 11, 2010 5:06:25 PM (14 years ago)
Author:
kroman0
Message:

Fixed tests

Location:
quintagroup.plonecomments/trunk/quintagroup/plonecomments/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonecomments/trunk/quintagroup/plonecomments/tests/testQPloneCommentsNotification.py

    r1633 r1719  
    187187        reply.deleteDiscussion() 
    188188        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' 
    190190        self.failUnless([1 for m in mails if REXP_SUBJ.search(m) and REXP_SUBJ.search(m).group(1)==subject], 
    191191            'No notification for rejecting comment.' % properties) 
  • quintagroup.plonecomments/trunk/quintagroup/plonecomments/tests/testQPloneCommentsNotificationRecipients.py

    r1633 r1719  
    9393        messages = [str(m) for m in mails if REXP_TO.search(str(m)) and REXP_TO.search(str(m)).group(1)==to] 
    9494        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],\ 
    9796             "There is no message for '%s' recipient with '%s' subject" % (to,subj)) 
    9897 
Note: See TracChangeset for help on using the changeset viewer.