'Creates a course with various subsections for testing'

def create_course(self):

    self.course = CourseFactory.create(grading_policy={'GRADER': [{'type': 'Homework', 'min_count': 4, 'drop_count': 0, 'weight': 1.0}]})
    self.chapter = ItemFactory.create(parent=self.course, category='chapter')
    self.problem_section = ItemFactory.create(parent=self.chapter, category='sequential', metadata={'graded': True, 'format': 'Homework'}, display_name='Subsection')
    self.define_option_problem(u'Problem1', parent=self.problem_section, num_responses=1)
    self.hidden_section = ItemFactory.create(parent=self.chapter, category='sequential', metadata={'graded': True, 'format': 'Homework'}, visible_to_staff_only=True, display_name='Hidden')
    self.define_option_problem(u'Problem2', parent=self.hidden_section)
    self.unattempted_section = ItemFactory.create(parent=self.chapter, category='sequential', metadata={'graded': True, 'format': 'Homework'}, display_name='Unattempted')
    self.define_option_problem(u'Problem3', parent=self.unattempted_section)
    self.empty_section = ItemFactory.create(parent=self.chapter, category='sequential', metadata={'graded': True, 'format': 'Homework'}, display_name='Empty')
