예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)