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

Method test_by_id

src/ifcopenshell-python/test/test_stream.py:32–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30 assert stream_file.schema == "IFC4"
31
32 def test_by_id(self):
33 stream_file: ifcopenshell.stream
34 stream_file = ifcopenshell.open(TEST_FILE, should_stream=True)
35 assert (element := stream_file.by_id(1))
36 assert str(element) == "#1=IFCPROJECT('3kv235yMjDO9tHiTzD8QuS',$,'My Project',$,$,$,$,(#14,#26),#9);"
37
38 def test_by_type(self):
39 stream_file: ifcopenshell.stream

Callers

nothing calls this directly

Calls 2

openMethod · 0.80
by_idMethod · 0.45

Tested by

no test coverage detected