mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
ifc2x3 tests
This commit is contained in:
@@ -121,3 +121,7 @@ class TestAssignContainer(test.bootstrap.IFC4):
|
||||
ifcopenshell.api.run("aggregate.assign_object", self.file, products=[subelement], relating_object=aggregate)
|
||||
ifcopenshell.api.run("spatial.assign_container", self.file, products=[subelement], relating_structure=element)
|
||||
assert not ifcopenshell.util.element.get_aggregate(subelement)
|
||||
|
||||
|
||||
class TestAssignContainerIFC2X3(test.bootstrap.IFC2X3, TestAssignContainer):
|
||||
pass
|
||||
|
||||
@@ -57,3 +57,7 @@ class TestUnassignContainer(test.bootstrap.IFC4):
|
||||
ifcopenshell.api.run("spatial.assign_container", self.file, products=[subelement], relating_structure=element)
|
||||
ifcopenshell.api.run("spatial.unassign_container", self.file, products=[subelement])
|
||||
assert len(self.file.by_type("IfcRelContainedInSpatialStructure")) == 0
|
||||
|
||||
|
||||
class TestUnassignContainerIFC2X3(test.bootstrap.IFC2X3, TestUnassignContainer):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user