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

@classmethod
def setUpClass(cls):

    with super(CourseHomePageTestCase, cls).setUpClassAndTestData():
        with cls.store.default_store(ModuleStoreEnum.Type.split):
            cls.course = CourseFactory.create(org='edX', number='test', display_name='Test    Course', start=(datetime.now(UTC) - timedelta(days=30)))
            with cls.store.bulk_operations(cls.course.id):
                chapter = ItemFactory.create(category='chapter', parent_location=cls.course.location, display_name=TEST_CHAPTER_NAME)
                section = ItemFactory.create(category='sequential', parent_location=chapter.location)
                section2 = ItemFactory.create(category='sequential', parent_location=chapter.location)
                ItemFactory.create(category='vertical', parent_location=section.location)
                ItemFactory.create(category='vertical', parent_location=section2.location)
