'Adds entrance exam related information to the given context.'

def _add_entrance_exam_to_context(self, courseware_context):

    if (course_has_entrance_exam(self.course) and getattr(self.chapter, 'is_entrance_exam', False)):
        courseware_context['entrance_exam_passed'] = user_has_passed_entrance_exam(self.effective_user, self.course)
        courseware_context['entrance_exam_current_score'] = get_entrance_exam_score_ratio(CourseGradeFactory().create(self.effective_user, self.course), get_entrance_exam_usage_key(self.course))
