mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-29 16:22:53 +00:00
17 lines
502 B
Python
17 lines
502 B
Python
|
|
import test.bootstrap
|
||
|
|
import ifcopenshell.api
|
||
|
|
|
||
|
|
|
||
|
|
class TestAddPerson(test.bootstrap.IFC4):
|
||
|
|
def test_adding_a_person(self):
|
||
|
|
person = ifcopenshell.api.run(
|
||
|
|
"owner.add_person",
|
||
|
|
self.file,
|
||
|
|
identification="Identification",
|
||
|
|
family_name="FamilyName",
|
||
|
|
given_name="GivenName",
|
||
|
|
)
|
||
|
|
assert person.Identification == "Identification"
|
||
|
|
assert person.FamilyName == "FamilyName"
|
||
|
|
assert person.GivenName == "GivenName"
|