def test_send_tarako_mail_review_failed(self): ok_(not self.send_mail.called) self.review.passed = False send_tarako_mail(self.review) self.send_mail.assert_called_with( 'Low-memory devices review failed', 'reviewers/emails/tarako_review_complete.txt', {'review': self.review}, recipient_list=[u'*****@*****.**'], from_email=settings.MKT_REVIEWERS_EMAIL)
def test_send_tarako_mail_failed_comm_dashboard(self): self.create_switch('comm-dashboard') ok_(not self.send_mail.called) self.review.passed = False send_tarako_mail(self.review) ok_(not self.send_mail.called)
def test_send_tarako_mail_failed_comm_dashboard(self): self.enable_comm_dashboard() ok_(not self.send_mail.called) self.review.passed = False send_tarako_mail(self.review) ok_(not self.send_mail.called)