'Endorse a resource once/twice/thrice'

@data({'times': 1, 'key': 'status', 'val': 'endorsement'}, {'times': 2, 'key': 'status', 'val': 'undo    endorsement'}, {'times': 3, 'key': 'status', 'val': 'endorsement'})
def test_endorse_resource_multiple_times(self, test_case):

    resource = {'id': self.resource_id, 'reason': ''}
    for _ in range((test_case['times'] - 1)):
        self.call_event('endorse_resource', resource)
    self.check_event_response_by_key('endorse_resource', resource, test_case['key'], test_case['val'])
