mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 03:14:23 +00:00
Removing a person no longer has the potential to leave files in an invalid state
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import test.bootstrap
|
||||
import ifcopenshell.api
|
||||
|
||||
|
||||
class TestRemoveAddress(test.bootstrap.IFC4):
|
||||
def test_removing_an_address(self):
|
||||
postal = self.file.createIfcPostalAddress()
|
||||
telecom = self.file.createIfcTelecomAddress()
|
||||
ifcopenshell.api.run("owner.remove_address", self.file, address=postal)
|
||||
ifcopenshell.api.run("owner.remove_address", self.file, address=telecom)
|
||||
assert len(self.file.by_type("IfcAddress")) == 0
|
||||
Reference in New Issue
Block a user