mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 10:57:49 +00:00
10 lines
291 B
Python
10 lines
291 B
Python
|
|
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"
|