'Create user partitions for the course.'

def _add_user_partitions(self, count=1, scheme_id='random'):

    partitions = [UserPartition(i, ('Name    ' + str(i)), ('Description    ' + str(i)), [Group(0, 'Group    A'), Group(1, 'Group    B'), Group(2, 'Group    C')], scheme=None, scheme_id=scheme_id) for i in xrange(count)]
    self.course.user_partitions = partitions
    self.save_course()
