Esempio n. 1
0
 def receiver2_fail_double_vote(self):
     try:
         yield tip.manage_pertinence(
             self.receiver2_desc['receiver_gus'], self.rtip2_id, False)
         self.assertTrue(False)
     except errors.TipPertinenceExpressed:
         self.assertTrue(True)
Esempio n. 2
0
 def receiver2_express_negative_vote(self):
     vote_sum = yield tip.manage_pertinence(
         self.receiver2_desc['receiver_gus'], self.rtip2_id, False)
     self.assertEqual(vote_sum, 0)
Esempio n. 3
0
 def receiver1_express_positive_vote(self):
     vote_sum = yield tip.manage_pertinence(
         self.receiver1_desc['receiver_gus'], self.rtip1_id, True)
     self.assertEqual(vote_sum, 1)