MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / test_container

Method test_container

src/ifcquery/tests/test_info.py:22–26  ·  view source on GitHub ↗
(self, model)

Source from the content-addressed store, hash-verified

20 assert result["attributes"]["Name"] == "Wall001"
21
22 def test_container(self, model):
23 wall = model.by_type("IfcWall")[0]
24 result = info(model, wall)
25 assert result["container"]["type"] == "IfcBuildingStorey"
26 assert result["container"]["name"] == "Ground Floor"
27
28 def test_project_info(self, model):
29 project = model.by_type("IfcProject")[0]

Callers

nothing calls this directly

Calls 2

infoFunction · 0.90
by_typeMethod · 0.45

Tested by

no test coverage detected