'Check that access is right for staff in course.'

def _check_staff(self, course):

    names = ['about_course', 'instructor_dashboard', 'progress']
    urls = self._reverse_urls(names, course)
    urls.extend([reverse('book', kwargs={'course_id': course.id.to_deprecated_string(), 'book_index': index}) for index in xrange(len(course.textbooks))])
    for url in urls:
        self.assert_request_status_code(200, url)
    url = reverse('student_progress', kwargs={'course_id': course.id.to_deprecated_string(), 'student_id': self.enrolled_user.id})
    self.assert_request_status_code(302, url)
    url = self._reverse_urls(['courseware'], course)[0]
    self.assert_request_status_code(302, url)
