def test_tarako_failed_reindexes_the_app(self): ok_(not self.index.called) tarako_failed(self.review) self.index.assert_called_with([self.app.pk])
def test_tarako_failed_removes_tarako_tag(self): self.tag.save_tag(self.app) ok_(self.has_tag(), 'expected the tarako tag') tarako_failed(self.review) ok_(not self.has_tag(), 'expected no tarako tag')
def test_tarako_failed_sends_tarako_mail(self): ok_(not self.send_tarako_mail.called) tarako_failed(self.review) self.send_tarako_mail.assert_called_with(self.review)