'Test new course creation - error path due to case insensitive name equality'

@ddt.data(ModuleStoreEnum.Type.split, ModuleStoreEnum.Type.mongo)
def test_create_course_case_change(self, default_store):

    self.course_data['number'] = '99x'
    with self.store.default_store(default_store):
        self.assert_created_course()
        cache_current = self.course_data['org']
        self.course_data['org'] = self.course_data['org'].lower()
        self.assert_course_creation_failed(self.duplicate_course_error)
        self.course_data['org'] = cache_current
        cache_current = self.course_data['number']
        self.course_data['number'] = self.course_data['number'].upper()
        self.assert_course_creation_failed(self.duplicate_course_error)
        self.course_data['number'] = cache_current
        __ = self.course_data['run']
        self.course_data['run'] = self.course_data['run'].upper()
        self.assert_course_creation_failed(self.duplicate_course_error)
