Files
IfcOpenShell/src/ifcopenshell-python/test/api/owner/test_edit_organisation.py
T

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

16 lines
596 B
Python
Raw Normal View History

import test.bootstrap
import ifcopenshell.api
class TestEditOrganisation(test.bootstrap.IFC4):
def test_editing_a_organisation(self):
organisation = self.file.createIfcOrganization()
ifcopenshell.api.run("owner.edit_organisation", self.file, organisation=organisation, attributes={
"Identification": "Identification",
"Name": "Name",
"Description": "Description",
})
assert organisation.Identification == "Identification"
assert organisation.Name == "Name"
assert organisation.Description == "Description"