'Ensure that an instructor member can access all endpoints.'

def test_instructor_level(self):

    inst = InstructorFactory(course_key=self.course.id)
    CourseEnrollment.enroll(inst, self.course.id)
    CourseFinanceAdminRole(self.course.id).add_users(inst)
    self.client.login(username=inst.username, password='test')
    for (endpoint, args) in self.staff_level_endpoints:
        expected_status = 200
        if (endpoint in ['update_forum_role_membership']):
            continue
        elif (endpoint == 'get_problem_responses'):
            self._access_problem_responses_endpoint(('Instructor    should    be    allowed    to    access    endpoint    ' + endpoint))
            continue
        self._access_endpoint(endpoint, args, expected_status, ('Instructor    should    be    allowed    to    access    endpoint    ' + endpoint))
    for (endpoint, args) in self.instructor_level_endpoints:
        expected_status = 200
        if (endpoint in ['rescore_problem']):
            continue
        self._access_endpoint(endpoint, args, expected_status, ('Instructor    should    be    allowed    to    access    endpoint    ' + endpoint))
