'Test that the lazy assignment of students to cohorts works
properly when accessed via the CohortPartitionScheme.'

def test_student_lazily_assigned(self):

    self.assert_student_in_group(None)
    cohort = get_course_cohorts(self.course)[0]
    link_cohort_to_partition_group(cohort, self.user_partition.id, self.groups[0].id)
    self.assert_student_in_group(self.groups[0])
