'Set up a simple course with a grading policy, a UserPartition, and 2 sections, both graded as "homework".
One section is pre-populated with a problem (with 2 inputs), visible to all students.
The second section is empty. Test cases should add conditional content to it.'

def setUp(self):

    super(TestConditionalContent, self).setUp()
    self.user_partition_group_0 = 0
    self.user_partition_group_1 = 1
    self.partition = UserPartition(0, 'first_partition', 'First    Partition', [Group(self.user_partition_group_0, 'alpha'), Group(self.user_partition_group_1, 'beta')])
    self.course = CourseFactory.create(display_name=self.COURSE_NAME, number=self.COURSE_SLUG, user_partitions=[self.partition])
    grading_policy = {'GRADER': [{'type': 'Homework', 'min_count': 2, 'drop_count': 0, 'short_label': 'HW', 'weight': 1.0}]}
    self.add_grading_policy(grading_policy)
    self.homework_all = self.add_graded_section_to_course('homework1')
    self.p1_all_html_id = self.add_dropdown_to_section(self.homework_all.location, 'H1P1', 2).location.html_id()
    self.homework_conditional = self.add_graded_section_to_course('homework2')
