def test_tarako_passed_reindexes_the_app(self): ok_(not self.index.called) tarako_passed(self.review) self.index.assert_called_with([self.app.pk])
def test_tarako_passed_adds_tarako_tag(self): ok_(not self.has_tag(), 'expected no tarako tag') tarako_passed(self.review) ok_(self.has_tag(), 'expected the tarako tag')
def test_tarako_passed_sends_tarako_mail(self): ok_(not self.send_tarako_mail.called) tarako_passed(self.review) self.send_tarako_mail.assert_called_with(self.review)