'Returns the group from the specified user partition to which the user is assigned.
If the user has not yet been assigned, a group will be chosen for them based upon
the partition\'s scheme.'

def get_group(self, user, user_partition, assign=True):

    return user_partition.scheme.get_group_for_user(self._course_id, user, user_partition, assign=assign)
