Files
IfcOpenShell/src/ifcopenshell-python/test/util/test_brick.py
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
376 B
Python
Raw Normal View History

2022-01-10 15:35:37 +11:00
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"