mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +00:00
more tests for ifc2x3
This commit is contained in:
@@ -48,3 +48,7 @@ class TestAssignControl(test.bootstrap.IFC4):
|
||||
assert len(self.file.by_type("IfcRelAssignsToControl")) == 1
|
||||
assert relation.RelatingControl == control
|
||||
assert set(relation.RelatedObjects) == set((wall, wall1))
|
||||
|
||||
|
||||
class TestAssignControlIFC2X3(test.bootstrap.IFC2X3, TestAssignControl):
|
||||
pass
|
||||
|
||||
@@ -41,3 +41,7 @@ class TestUnassignControl(test.bootstrap.IFC4):
|
||||
ifcopenshell.api.run("control.unassign_control", self.file, relating_control=control, related_object=wall1)
|
||||
assert len(self.file.by_type("IfcRelAssignsToControl")) == 1
|
||||
assert relation.RelatedObjects == (wall,)
|
||||
|
||||
|
||||
class TestUnassignControlIFC2X3(test.bootstrap.IFC2X3, TestUnassignControl):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user