'Verify that enabling cohorts on a course does not automatically set the discussion division_scheme
to cohort.'

def test_enabling_cohorts_does_not_change_division_scheme(self):

    config_course_cohorts(self.course, is_cohorted=False, discussion_division_scheme=CourseDiscussionSettings.NONE)
    response = self.get_handler(self.course, handler=course_cohort_settings_handler)
    expected_response = self.get_expected_response()
    expected_response['is_cohorted'] = False
    self.assertEqual(response, expected_response)
    self.assertEqual(CourseDiscussionSettings.NONE, get_course_discussion_settings(self.course.id).division_scheme)
    expected_response['is_cohorted'] = True
    response = self.patch_handler(self.course, data=expected_response, handler=course_cohort_settings_handler)
    self.assertEqual(response, expected_response)
    self.assertEqual(CourseDiscussionSettings.NONE, get_course_discussion_settings(self.course.id).division_scheme)
