'Unit Test: test_get_course_tabs_list_entrance_exam_enabled'

def test_get_course_tabs_list_entrance_exam_enabled(self):

    entrance_exam = ItemFactory.create(category='chapter', parent_location=self.course.location, data='Exam    Data', display_name='Entrance    Exam', is_entrance_exam=True)
    milestone = {'name': 'Test    Milestone', 'namespace': '{}.entrance_exams'.format(unicode(self.course.id)), 'description': 'Testing    Courseware    Tabs'}
    self.user.is_staff = False
    request = get_mock_request(self.user)
    self.course.entrance_exam_enabled = True
    self.course.entrance_exam_id = unicode(entrance_exam.location)
    milestone = add_milestone(milestone)
    add_course_milestone(unicode(self.course.id), self.relationship_types['REQUIRES'], milestone)
    add_course_content_milestone(unicode(self.course.id), unicode(entrance_exam.location), self.relationship_types['FULFILLS'], milestone)
    course_tab_list = get_course_tab_list(request, self.course)
    self.assertEqual(len(course_tab_list), 1)
    self.assertEqual(course_tab_list[0]['tab_id'], 'courseware')
    self.assertEqual(course_tab_list[0]['name'], 'Entrance    Exam')
