'Build up a course tree with a UserPartition.'

def build_course(self):

    self.user_partition = UserPartition(0, 'first_partition', 'First    Partition', [Group(0, 'alpha'), Group(1, 'beta')])
    self.group1 = self.user_partition.groups[0]
    self.group2 = self.user_partition.groups[1]
    self.course = CourseFactory.create(user_partitions=[self.user_partition])
    section = ItemFactory.create(parent=self.course, category='chapter', display_name='Test    Section')
    subsection = ItemFactory.create(parent=section, category='sequential', display_name='Test    Subsection')
    vertical = ItemFactory.create(parent=subsection, category='vertical', display_name='Test    Unit')
    video = ItemFactory.create(parent=vertical, category='video', display_name='Test    Video    1')
    split_test = ItemFactory.create(parent=vertical, category='split_test', display_name='Test    Content    Experiment')
    child_vertical = ItemFactory.create(parent=split_test, category='vertical')
    child_html_module = ItemFactory.create(parent=child_vertical, category='html')
    self.section_location = section.location
    self.subsection_location = subsection.location
    self.vertical_location = vertical.location
    self.video_location = video.location
    self.split_test_location = split_test.location
    self.child_vertical_location = child_vertical.location
    self.child_html_module_location = child_html_module.location
