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

Method test_basic_attributes

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

Source from the content-addressed store, hash-verified

13
14class TestInfo:
15 def test_basic_attributes(self, model):
16 wall = model.by_type("IfcWall")[0]
17 result = info(model, wall)
18 assert result["id"] == wall.id()
19 assert result["type"] == "IfcWall"
20 assert result["attributes"]["Name"] == "Wall001"
21
22 def test_container(self, model):
23 wall = model.by_type("IfcWall")[0]

Callers

nothing calls this directly

Calls 3

infoFunction · 0.90
by_typeMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected