mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
add tests for get_referenced_structures
This commit is contained in:
@@ -726,6 +726,10 @@ class TestGetReferencedStructures(test.bootstrap.IFC4):
|
|||||||
assert subject.get_referenced_structures(element) == [building, building2]
|
assert subject.get_referenced_structures(element) == [building, building2]
|
||||||
|
|
||||||
|
|
||||||
|
class TestGetReferencedStructuresIFC2X3(test.bootstrap.IFC2X3, TestGetReferencedStructures):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class TestGetStructureReferencedElements(test.bootstrap.IFC4):
|
class TestGetStructureReferencedElements(test.bootstrap.IFC4):
|
||||||
def test_getting_references_of_an_element(self):
|
def test_getting_references_of_an_element(self):
|
||||||
building = ifcopenshell.api.run("root.create_entity", self.file, ifc_class="IfcBuilding")
|
building = ifcopenshell.api.run("root.create_entity", self.file, ifc_class="IfcBuilding")
|
||||||
|
|||||||
Reference in New Issue
Block a user