Example #1
0
 def test_forModificationHasMsgId(self):
     """Ensure the right delta is filled out if there is a change."""
     merge_proposal = self.factory.makeBranchMergeProposal()
     switch_dbuser(config.IBranchMergeProposalJobSource.dbuser)
     mailer = BMPMailer.forModification(
         merge_proposal, 'the diff', merge_proposal.registrant)
     self.assertIsNot(None, mailer.message_id, 'message_id not set')
 def run(self):
     """See `IRunnableJob`."""
     mailer = BMPMailer.forModification(self.branch_merge_proposal, self.delta_text, self.editor)
     mailer.sendAll()
Example #3
0
 def run(self):
     """See `IRunnableJob`."""
     mailer = BMPMailer.forModification(self.branch_merge_proposal,
                                        self.delta_text, self.editor)
     mailer.sendAll()
 def test_forModificationHasMsgId(self):
     """Ensure the right delta is filled out if there is a change."""
     merge_proposal = self.factory.makeBranchMergeProposal()
     mailer = BMPMailer.forModification(
         merge_proposal, 'the diff', merge_proposal.registrant)
     self.assertIsNot(None, mailer.message_id, 'message_id not set')