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)
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)
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)
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)
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)
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)