'Tests tab list is not limited if user is allowed to skip entrance exam.'

def test_get_course_tabs_list_skipped_entrance_exam(self):

    student = UserFactory()
    instructor = InstructorFactory(course_key=self.course.id)
    self.client.logout()
    self.client.login(username=instructor.username, password='test')
    url = reverse('mark_student_can_skip_entrance_exam', kwargs={'course_id': unicode(self.course.id)})
    response = self.client.post(url, {'unique_student_identifier': student.email})
    self.assertEqual(response.status_code, 200)
    self.client.logout()
    self.login(self.email, self.password)
    request = get_mock_request(self.user)
    course_tab_list = get_course_tab_list(request, self.course)
    self.assertEqual(len(course_tab_list), 5)
