'Test types of admin accesses to a course'

def test_administrative_accesses_to_course_for_user(self):

    course_key = self.course.id
    for (count, user) in enumerate([self.global_staff, self.course_staff, self.course_instructor]):
        self.assertTrue(access.administrative_accesses_to_course_for_user(user, course_key)[count])
    self.assertFalse(any(access.administrative_accesses_to_course_for_user(self.student, course_key)))
