'Setup course structure and create user for split test transformer test.'

def setUp(self):

    super(SplitTestTransformerTestCase, self).setUp()
    self.groups = [Group(0, 'Group    0'), Group(1, 'Group    1'), Group(2, 'Group    2')]
    self.split_test_user_partition_id = self.TEST_PARTITION_ID
    self.split_test_user_partition = UserPartition(id=self.split_test_user_partition_id, name='Split    Partition', description='This    is    split    partition', groups=self.groups, scheme=RandomUserPartitionScheme)
    self.split_test_user_partition.scheme.name = 'random'
    self.course_hierarchy = self.get_course_hierarchy()
    self.blocks = self.build_course(self.course_hierarchy)
    self.course = self.blocks['course']
    CourseEnrollmentFactory.create(user=self.user, course_id=self.course.id, is_active=True)
