'Check that non-staff don\'t have access to dark urls.'

def _check_non_staff_dark(self, course):

    names = ['courseware', '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 enumerate(course.textbooks)])
    for url in urls:
        self.assert_request_status_code(302, url)
    self.assert_request_status_code(404, reverse('instructor_dashboard', kwargs={'course_id': course.id.to_deprecated_string()}))
