'Set up an array of various courses to be tested.'

@classmethod
def setUpClass(cls):

    with super(TestCourseOutlinePage, cls).setUpClassAndTestData():
        cls.courses = []
        course = CourseFactory.create()
        with cls.store.bulk_operations(course.id):
            chapter = ItemFactory.create(category='chapter', parent_location=course.location)
            sequential = ItemFactory.create(category='sequential', parent_location=chapter.location)
            vertical = ItemFactory.create(category='vertical', parent_location=sequential.location)
        course.children = [chapter]
        chapter.children = [sequential]
        sequential.children = [vertical]
        cls.courses.append(course)
        course = CourseFactory.create()
        with cls.store.bulk_operations(course.id):
            chapter = ItemFactory.create(category='chapter', parent_location=course.location)
            sequential = ItemFactory.create(category='sequential', parent_location=chapter.location)
            sequential2 = ItemFactory.create(category='sequential', parent_location=chapter.location)
            vertical = ItemFactory.create(category='vertical', parent_location=sequential.location)
            vertical2 = ItemFactory.create(category='vertical', parent_location=sequential2.location)
        course.children = [chapter]
        chapter.children = [sequential, sequential2]
        sequential.children = [vertical]
        sequential2.children = [vertical2]
        cls.courses.append(course)
        course = CourseFactory.create()
        with cls.store.bulk_operations(course.id):
            chapter = ItemFactory.create(category='chapter', parent_location=course.location)
            sequential = ItemFactory.create(category='sequential', parent_location=chapter.location, due=datetime.datetime.now(), graded=True, format='Homework')
            vertical = ItemFactory.create(category='vertical', parent_location=sequential.location)
        course.children = [chapter]
        chapter.children = [sequential]
        sequential.children = [vertical]
        cls.courses.append(course)
