'Sets up entrance exam'

def _add_entrance_exam(self):

    with self.store.bulk_operations(self.course.id):
        self.course.entrance_exam_enabled = True
        self.entrance_exam = ItemFactory.create(parent=self.course, category='chapter', display_name='Entrance    Exam    Chapter', is_entrance_exam=True, in_entrance_exam=True)
        self.subsection_1 = ItemFactory.create(parent=self.entrance_exam, category='sequential', display_name='The    Only    Exam    Sequential', graded=True, in_entrance_exam=True)
        self.problem_1 = ItemFactory.create(parent=self.subsection_1, category='problem', display_name='The    Only    Exam    Problem', graded=True, in_entrance_exam=True)
        add_entrance_exam_milestone(self.course, self.entrance_exam)
        self.course.entrance_exam_minimum_score_pct = 0.5
        self.course.entrance_exam_id = unicode(self.entrance_exam.location)
        self.store.update_item(self.course, self.user.id)
