'Tests gating is disabled if user is member of staff.'

def test_entrance_exam_gating_for_staff(self):

    self.client.logout()
    staff_user = StaffFactory(course_key=self.course.id)
    staff_user.is_staff = True
    self.client.login(username=staff_user.username, password='test')
    self.request.user = staff_user
    unlocked_toc = self._return_table_of_contents()
    for toc_section in self.expected_unlocked_toc:
        self.assertIn(toc_section, unlocked_toc)
