def receiver1_delete_tip(self): yield rtip.delete_internal_tip(self.receiver1_desc['id'], self.rtip1_id) self.assertFailure(rtip.get_tip(self.receiver1_desc['id'], self.rtip1_id, 'en'), errors.TipIdNotFound)
def receiver1_global_delete_tip(self): yield rtip.delete_internal_tip(self.receiver1_desc['id'], self.rtip1_id) self.assertFailure(rtip.get_tip(self.receiver1_desc['id'], self.rtip1_id, 'en'), errors.TipIdNotFound)
def receiver1_global_delete_tip(self): yield rtip.delete_internal_tip(self.receiver1_desc['id'], self.rtip1_id) try: # just one operation that fail if iTip is invalid yield rtip.get_internaltip_receiver(self.receiver1_desc['id'], self.rtip1_id) self.assertTrue(False) except errors.TipIdNotFound: self.assertTrue(True) except Exception, e: self.assertTrue(False) raise e
def receiver1_global_delete_tip(self): yield rtip.delete_internal_tip(self.receiver1_desc['id'], self.rtip1_id) try: # just one operation that fail if iTip is invalid yield rtip.get_internaltip_receiver( self.receiver1_desc['id'], self.rtip1_id) self.assertTrue(False) except errors.TipIdNotFound: self.assertTrue(True) except Exception, e: self.assertTrue(False) raise e
def receiver2_fail_in_delete_internal_tip(self): yield self.assertFailure(rtip.delete_internal_tip(self.receiver2_desc['id'], self.rtip2_id), errors.ForbiddenOperation)
def receiver2_fail_in_delete_internal_tip(self): yield self.assertFailure( rtip.delete_internal_tip(self.receiver2_desc['id'], self.rtip2_id), errors.ForbiddenOperation)