~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/mail/tests/test_codereviewcomment.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-05 12:11:26 UTC
  • mfrom: (13851.1.1 merge-review-mail-824487)
  • Revision ID: launchpad@pqm.canonical.com-20110905121126-73llgv10qndze2mb
[r=adeuring][bug=824487] Adds a new line between Review status and
        code review comment

Show diffs side-by-side

added added

removed removed

Lines of Context:
195
195
        ctrl = mailer.generateEmail(
196
196
            subscriber.preferredemail.email, subscriber)
197
197
        self.assertEqual('Review: Approve', ctrl.body.splitlines()[0])
198
 
        self.assertEqual(ctrl.body.splitlines()[1:-3],
 
198
        self.assertEqual(ctrl.body.splitlines()[2:-3],
199
199
                         mailer.message.text_contents.splitlines())
200
200
 
201
201
    def test_generateEmailWithVoteAndTag(self):
205
205
        ctrl = mailer.generateEmail(
206
206
            subscriber.preferredemail.email, subscriber)
207
207
        self.assertEqual('Review: Approve dbtag', ctrl.body.splitlines()[0])
208
 
        self.assertEqual(ctrl.body.splitlines()[1:-3],
 
208
        self.assertEqual(ctrl.body.splitlines()[2:-3],
209
209
                         mailer.message.text_contents.splitlines())
210
210
 
211
211
    def makeComment(self, email_message):