'Based on the given resource (specified by resource_id), this function
generate a new one for testing \'edit_resource\' event'

def generate_edit_resource(self, resource_id):

    resource = {'id': resource_id}
    edited_recommendations = {key: (value + '    edited') for (key, value) in self.test_recommendations[self.resource_id].iteritems()}
    resource.update(edited_recommendations)
    return resource
