'Create a new course with the specified course modes.'

def _create_course(self, *course_modes, **kwargs):

    course = CourseFactory.create(display_name='<script>alert("XSS")</script>')
    if kwargs.get('course_start'):
        course.start = kwargs.get('course_start')
        modulestore().update_item(course, ModuleStoreEnum.UserID.test)
    mode_kwargs = {}
    if kwargs.get('sku'):
        mode_kwargs['sku'] = kwargs['sku']
    for course_mode in course_modes:
        min_price = (0 if (course_mode in ['honor', 'audit']) else self.MIN_PRICE)
        CourseModeFactory.create(course_id=course.id, mode_slug=course_mode, mode_display_name=course_mode, min_price=min_price, **mode_kwargs)
    return course
