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

Method test_entity

src/ifcedit/tests/test_run.py:82–87  ·  view source on GitHub ↗
(self, model)

Source from the content-addressed store, hash-verified

80 assert serialize_result(42) == 42
81
82 def test_entity(self, model):
83 wall = model.by_type("IfcWall")[0]
84 result = serialize_result(wall)
85 assert result["id"] == wall.id()
86 assert result["type"] == "IfcWall"
87 assert result["name"] == "Wall001"
88
89 def test_list(self, model):
90 walls = model.by_type("IfcWall")

Callers

nothing calls this directly

Calls 3

serialize_resultFunction · 0.90
by_typeMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected