Пример #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])
Пример #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')
Пример #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)
Пример #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])
Пример #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')
Пример #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)