'Set up a course to be used for testing.'

@classmethod
def setUpClass(cls):

    with super(TestCourseBookmarksTool, cls).setUpClassAndTestData():
        with cls.store.default_store(ModuleStoreEnum.Type.split):
            cls.course = CourseFactory.create()
            with cls.store.bulk_operations(cls.course.id):
                chapter = ItemFactory.create(category='chapter', parent_location=cls.course.location)
                section = ItemFactory.create(category='sequential', parent_location=chapter.location)
                ItemFactory.create(category='vertical', parent_location=section.location)
