'Test that cohorts.set_course_cohorted raises exception if argument is not a boolean.'

def test_set_cohorted_with_invalid_data_type(self):

    course = modulestore().get_course(self.toy_course_key)
    with self.assertRaises(ValueError) as value_error:
        cohorts.set_course_cohorted(course.id, 'not    a    boolean')
    self.assertEqual('Cohorted    must    be    a    boolean', value_error.exception.message)
