@@ -0,0 +1,1140 @@
+# Copyright (c) 2016 Ultimaker B.V.%0A# Uranium is released under the terms of the AGPLv3 or higher.%0A%0Aimport pytest%0A%0Aimport UM.Settings.SettingRelation%0A%0Adef test_create():%0A    with pytest.raises(ValueError):%0A        relation = UM.Settings.SettingRelation.SettingRelation(None, 2, UM.Settings.SettingRelation.RelationType.RequiresTarget, %22max%22)%0A%0A    with pytest.raises(ValueError):%0A        relation = UM.Settings.SettingRelation.SettingRelation(1, None, UM.Settings.SettingRelation.RelationType.RequiresTarget, %22max%22)%0A%0A    relation = UM.Settings.SettingRelation.SettingRelation(1, 2, UM.Settings.SettingRelation.RelationType.RequiresTarget, %22max%22)%0A    assert relation.owner == 1%0A    assert relation.target == 2%0A    assert relation.type == UM.Settings.SettingRelation.RelationType.RequiresTarget%0A    assert relation.role == %22max%22%0A%0A    relation = UM.Settings.SettingRelation.SettingRelation(1, 2, UM.Settings.SettingRelation.RelationType.RequiredByTarget, %22min%22)%0A    assert relation.owner == 1%0A    assert relation.target == 2%0A    assert relation.type == UM.Settings.SettingRelation.RelationType.RequiredByTarget%0A    assert relation.role == %22min%22

Add test suite for SettingRelation