Files
IfcOpenShell/src/ifcopenshell-python/test/api/unit/test_add_monetary_unit.py
T

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

10 lines
291 B
Python
Raw Normal View History

import test.bootstrap
import ifcopenshell.api
class TestAddMonetaryUnit(test.bootstrap.IFC4):
def test_run(self):
unit = ifcopenshell.api.run("unit.add_monetary_unit", self.file, currency="USD")
assert unit.is_a("IfcMonetaryUnit")
assert unit.Currency == "USD"