'If the VerifiedTrackCohortedCourse feature is enabled for a course (with course cohorting enabled
with an existing verified cohort), enrollment in the verified track automatically moves learners
into the verified cohort.'

def test_automatic_cohorting_enabled(self):

    self._enable_cohorting()
    self._create_verified_cohort()
    self._enable_verified_track_cohorting()
    self.assertTrue(VerifiedTrackCohortedCourse.is_verified_track_cohort_enabled(self.course.id))
    self._enroll_in_course()
    self.assertEqual(2, self.mocked_celery_task.call_count)
    self.assertEqual(DEFAULT_COHORT_NAME, get_cohort(self.user, self.course.id, assign=False).name)
    self._upgrade_to_verified()
    self.assertEqual(4, self.mocked_celery_task.call_count)
    self.assertEqual(DEFAULT_VERIFIED_COHORT_NAME, get_cohort(self.user, self.course.id, assign=False).name)
