def METHOD_NAME():
    # SettingDefinition overrides the __getattr_ and __setattr__, but only for known properties.
    definition = UM.Settings.SettingDefinition.SettingDefinition("test", None)
    with pytest.raises(AttributeError):
        definition.this_doesnt_exist
    with pytest.raises(NotImplementedError):
        definition.type = "ZOMG"