'Vote two resources in two different xblocks'

@data({'event': 'recommender_upvote', 'new_votes': 1}, {'event': 'recommender_downvote', 'new_votes': (-1)})
def test_vote_resources_in_different_xblocks(self, test_case):

    resource = {'id': self.resource_id, 'event': test_case['event']}
    self.call_event('handle_vote', resource)
    self.check_event_response_by_key('handle_vote', resource, 'newVotes', test_case['new_votes'], self.XBLOCK_NAMES[1])
