'If the VerifiedTrackCohortedCourse feature is disabled for a course, enrollment mode changes do not move
learners into a cohort.'

@mock.patch('openedx.core.djangoapps.verified_track_content.models.log.error')
def test_automatic_cohorting_disabled(self, error_logger):

    self._enable_cohorting()
    self._create_verified_cohort()
    self.assertFalse(VerifiedTrackCohortedCourse.is_verified_track_cohort_enabled(self.course.id))
    self._verify_no_automatic_cohorting()
    self.assertFalse(error_logger.called)
