'Gets the group the user is assigned to.'

def _get_user_group(self):

    user_partition = create_enrollment_track_partition(self.course)
    return user_partition.scheme.get_group_for_user(self.course.id, self.student, user_partition)
