mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
New IFC to Brick class mapping utility
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import pytest
|
||||
import test.bootstrap
|
||||
import ifcopenshell.util.brick as subject
|
||||
|
||||
|
||||
class TestGetBrickTypeIFC4(test.bootstrap.IFC4):
|
||||
def test_run(self):
|
||||
element = self.file.createIfcAirTerminalBox()
|
||||
assert subject.get_brick_type(element) == "TerminalUnit"
|
||||
element.PredefinedType = "CONSTANTFLOW"
|
||||
assert subject.get_brick_type(element) == "CAV"
|
||||
Reference in New Issue
Block a user