'Tests gating is disabled if skip entrance exam is set for a user.'

def test_skip_entrance_exam_gating(self):

    locked_toc = self._return_table_of_contents()
    for toc_section in self.expected_locked_toc:
        self.assertIn(toc_section, locked_toc)
    instructor = InstructorFactory(course_key=self.course.id)
    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': self.request.user.email})
    self.assertEqual(response.status_code, 200)
    unlocked_toc = self._return_table_of_contents()
    for toc_section in self.expected_unlocked_toc:
        self.assertIn(toc_section, unlocked_toc)
