def METHOD_NAME(self, sonarqube_check):
    check = sonarqube_check({'components': {'foo': {}}, 'default_exclude': [9000]})
    with pytest.raises(ConfigurationError, match='Pattern #1 in `default_exclude` setting must be a string'):
        check.parse_config()