'Get force publish the course response.
Arguments:
course (object): a course object.
Returns:
response : response from force publish post view.'

def get_force_publish_course_response(self, course):

    self.verify_versions_are_different(course)
    data = {'course-id': unicode(course.id)}
    response = self.client.post(self.view_url, data=data, HTTP_X_REQUESTED_WITH='XMLHttpRequest')
    response_data = json.loads(response.content)
    return response_data
