Exemplo n.º 1
0
 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])
Exemplo n.º 2
0
 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')
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 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])
Exemplo n.º 5
0
 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')
Exemplo n.º 6
0
 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)