'Create a course in the store, with a chapter and section.
Arguments:
course_factory_kwargs (dict): kwargs dict to pass to
CourseFactory.create()'

def initialize_course(self, course_factory_kwargs=None):

    self.module_store = modulestore()
    course_args = {'org': TEST_COURSE_ORG, 'number': TEST_COURSE_NUMBER, 'display_name': TEST_COURSE_NAME}
    if (course_factory_kwargs is not None):
        course_args.update(course_factory_kwargs)
    self.course = CourseFactory.create(**course_args)
    self.add_course_content()
