Exemple #1
0
 def receiver2_fail_double_vote(self):
     try:
         yield rtip.manage_pertinence(self.receiver2_desc['id'],
                                      self.rtip2_id, False)
         self.assertTrue(False)
     except errors.TipPertinenceExpressed:
         self.assertTrue(True)
Exemple #2
0
 def receiver2_fail_double_vote(self):
     try:
         yield rtip.manage_pertinence(
             self.receiver2_desc['id'], self.rtip2_id, False)
         self.assertTrue(False)
     except errors.TipPertinenceExpressed:
         self.assertTrue(True)
Exemple #3
0
 def receiver2_express_negative_vote(self):
     vote_sum = yield rtip.manage_pertinence(self.receiver2_desc['id'],
                                             self.rtip2_id, False)
     self.assertEqual(vote_sum, 0)
Exemple #4
0
 def receiver1_express_positive_vote(self):
     vote_sum = yield rtip.manage_pertinence(self.receiver1_desc['id'],
                                             self.rtip1_id, True)
     self.assertEqual(vote_sum, 1)
Exemple #5
0
 def receiver2_express_negative_vote(self):
     vote_sum = yield rtip.manage_pertinence(
         self.receiver2_desc['id'], self.rtip2_id, False)
     self.assertEqual(vote_sum, 0)
Exemple #6
0
 def receiver1_express_positive_vote(self):
     vote_sum = yield rtip.manage_pertinence(
         self.receiver1_desc['id'], self.rtip1_id, True)
     self.assertEqual(vote_sum, 1)