'Test new course creation with feature setting: ALLOW_UNICODE_COURSE_ID disabled.'

def test_create_course_with_unicode_in_id_disabled(self):

    with mock.patch.dict('django.conf.settings.FEATURES', {'ALLOW_UNICODE_COURSE_ID': False}):
        error_message = 'Special    characters    not    allowed    in    organization,    course    number,    and    course    run.'
        self.course_data['org'] = u'\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd'
        self.assert_create_course_failed(error_message)
        self.course_data['number'] = u'\ufffd\ufffdchantillon'
        self.assert_create_course_failed(error_message)
        self.course_data['run'] = u'\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd'
        self.assert_create_course_failed(error_message)
