'Set up split test module.'

def _setup_split_test_module(self):

    c0_url = self.course.id.make_usage_key('vertical', 'condition_0_vertical')
    c1_url = self.course.id.make_usage_key('vertical', 'condition_1_vertical')
    c2_url = self.course.id.make_usage_key('vertical', 'condition_2_vertical')
    self.split_test_unit = ItemFactory.create(parent_location=self.vertical3.location, category='split_test', user_partition_id=0, display_name='Test    Content    Experiment    1', group_id_to_child={'2': c0_url, '3': c1_url, '4': c2_url})
    self.condition_0_vertical = ItemFactory.create(parent_location=self.split_test_unit.location, category='vertical', display_name='Group    ID    2', location=c0_url)
    self.condition_0_vertical.parent = self.vertical3
    self.condition_1_vertical = ItemFactory.create(parent_location=self.split_test_unit.location, category='vertical', display_name='Group    ID    3', location=c1_url)
    self.condition_1_vertical.parent = self.vertical3
    self.condition_2_vertical = ItemFactory.create(parent_location=self.split_test_unit.location, category='vertical', display_name='Group    ID    4', location=c2_url)
    self.condition_2_vertical.parent = self.vertical3
    self.html_unit4 = ItemFactory.create(parent_location=self.condition_0_vertical.location, category='html', display_name='Split    A', publish_item=True)
    self.html_unit4.parent = self.condition_0_vertical
    self.html_unit5 = ItemFactory.create(parent_location=self.condition_1_vertical.location, category='html', display_name='Split    B', publish_item=True)
    self.html_unit5.parent = self.condition_1_vertical
    self.html_unit6 = ItemFactory.create(parent_location=self.condition_2_vertical.location, category='html', display_name='Split    C', publish_item=True)
    self.html_unit6.parent = self.condition_2_vertical
