def test_MergeProposalUpdatedEmailJob(self):
     """MergeProposalUpdatedEmailJob runs under Celery."""
     bmp = self.factory.makeBranchMergeProposal()
     self.useFixture(FeatureFixture(
         {'jobs.celery.enabled_classes': 'MergeProposalUpdatedEmailJob'}))
     with block_on_job():
         MergeProposalUpdatedEmailJob.create(
             bmp, 'change', bmp.registrant)
         transaction.commit()
     self.assertEqual(2, len(pop_remote_notifications()))
 def test_getOperationDescription(self):
     bmp = self.factory.makeBranchMergeProposal()
     job = MergeProposalUpdatedEmailJob.create(
         bmp, 'change', bmp.registrant)
     self.assertEqual(
         'emailing subscribers about merge proposal changes',
         job.getOperationDescription())
 def test_providesInterface(self):
     """MergeProposalUpdatedEmailJob provides the expected interfaces."""
     bmp = self.factory.makeBranchMergeProposal()
     job = MergeProposalUpdatedEmailJob.create(
         bmp, 'change', bmp.registrant)
     verifyObject(IMergeProposalUpdatedEmailJob, job)
     verifyObject(IBranchMergeProposalJob, job)