Files
IfcOpenShell/src/ifcopenshell-python/test/util/test_brick.py
T
2022-01-10 15:35:37 +11:00

12 lines
376 B
Python

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"