'Set up course with a subsection with the given show_correctness, due_date, and graded settings.'

def setup_course(self, show_correctness='', due_date=None, graded=False, **course_options):

    course_options['grading_policy'] = {'GRADER': [{'type': self.GRADER_TYPE, 'min_count': 2, 'drop_count': 0, 'short_label': 'HW', 'weight': 1.0}], 'GRADE_CUTOFFS': {'A': 0.9, 'B': 0.33}}
    self.create_course(**course_options)
    metadata = dict(show_correctness=show_correctness)
    if (due_date is not None):
        metadata['due'] = due_date
    if graded:
        metadata['graded'] = True
        metadata['format'] = self.GRADER_TYPE
    with self.store.bulk_operations(self.course.id):
        self.chapter = ItemFactory.create(category='chapter', parent_location=self.course.location, display_name='Section    1')
        self.section = ItemFactory.create(category='sequential', parent_location=self.chapter.location, display_name='Subsection    1', metadata=metadata)
        self.vertical = ItemFactory.create(category='vertical', parent_location=self.section.location)
    CourseEnrollmentFactory(user=self.user, course_id=self.course.id, mode=CourseMode.HONOR)
