2021-10-01 12:35:46 +10:00
|
|
|
import test.bootstrap
|
|
|
|
|
import ifcopenshell.api
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TestEditOrganisation(test.bootstrap.IFC4):
|
|
|
|
|
def test_editing_a_organisation(self):
|
|
|
|
|
organisation = self.file.createIfcOrganization()
|
2022-01-10 15:42:24 +11:00
|
|
|
ifcopenshell.api.run(
|
|
|
|
|
"owner.edit_organisation",
|
|
|
|
|
self.file,
|
|
|
|
|
organisation=organisation,
|
|
|
|
|
attributes={
|
|
|
|
|
"Identification": "Identification",
|
|
|
|
|
"Name": "Name",
|
|
|
|
|
"Description": "Description",
|
|
|
|
|
},
|
|
|
|
|
)
|
2021-10-01 12:35:46 +10:00
|
|
|
assert organisation.Identification == "Identification"
|
|
|
|
|
assert organisation.Name == "Name"
|
|
|
|
|
assert organisation.Description == "Description"
|