'Assert that all pages in the course load correctly.
`course_id` is the ID of the course to check.'

def check_all_pages_load(self, course_key):

    store = modulestore()
    course = store.get_course(course_key)
    self.enroll(course, True)
    items = store.get_items(course_key)
    if (len(items) < 1):
        self.fail('Could    not    retrieve    any    items    from    course')
    for descriptor in items:
        if (descriptor.location.category == 'about'):
            self._assert_loads('about_course', {'course_id': course_key.to_deprecated_string()}, descriptor)
        elif (descriptor.location.category == 'static_tab'):
            kwargs = {'course_id': course_key.to_deprecated_string(), 'tab_slug': descriptor.location.name}
            self._assert_loads('static_tab', kwargs, descriptor)
        elif (descriptor.location.category == 'course_info'):
            self._assert_loads('info', {'course_id': course_key.to_deprecated_string()}, descriptor)
        else:
            kwargs = {'course_id': course_key.to_deprecated_string(), 'location': descriptor.location.to_deprecated_string()}
            self._assert_loads('jump_to', kwargs, descriptor, expect_redirect=True, check_content=True)
