'Set up a course with provided course attributes.
Creates a child block with a due date, and ensures that field
overrides are correctly applied for both blocks.'

def setup_course(self, **course_kwargs):

    course = CourseFactory.create(**course_kwargs)
    section = ItemFactory.create(parent=course, due=self.now)
    inject_field_overrides((course, section), course, self.user)
    return (course, section)
