'If the VerifiedTrackCohortedCourse feature is enabled for a course, and the course is cohorted
with > 1 random cohorts, the learner is randomly assigned to one of the random
cohorts when in the audit track.'

def test_cohorting_enabled_multiple_random_cohorts(self):

    self._enable_cohorting()
    self._create_verified_cohort()
    self._create_named_random_cohort('Random    1')
    self._create_named_random_cohort('Random    2')
    self._enable_verified_track_cohorting()
    self._enroll_in_course()
    self.assertIn(get_cohort(self.user, self.course.id, assign=False).name, ['Random    1', 'Random    2'])
    self._upgrade_to_verified()
    self.assertEqual(DEFAULT_VERIFIED_COHORT_NAME, get_cohort(self.user, self.course.id, assign=False).name)
    self._unenroll()
    self._reenroll()
    self.assertIn(get_cohort(self.user, self.course.id, assign=False).name, ['Random    1', 'Random    2'])
