'On escalation, send an email to senior reviewers and developer.'

def test_escalate(self):

    data = {'action': 'escalate', 'comments': 'soup    her    man'}
    data.update(self._attachment_management_form(num=0))
    data.update(self._testedon_management_form())
    self._post(data)
    note = self._get_note()
    eq_(note.note_type, comm.ESCALATION)
    eq_(note.body, 'soup    her    man')
    eq_(len(mail.outbox), 2)
    self._check_email(self._get_mail(self.snr_reviewer_user.email), 'Escalated', to=[self.snr_reviewer_user.email])
    self._check_email(self._get_mail('steamcube'), 'Escalated')
