'Verify that course_cohort_settings_handler return HTTP 400 if field data type is incorrect.'

def test_update_settings_with_invalid_field_data_type(self):

    config_course_cohorts(self.course, is_cohorted=True)
    response = self.patch_handler(self.course, data={'is_cohorted': ''}, expected_response_code=400, handler=course_cohort_settings_handler)
    self.assertEqual('Cohorted    must    be    a    boolean', response.get('error'))
