diff --git a/src/blenderbim/test/bim/module/void/test_operator.py b/src/blenderbim/test/bim/module/void/test_operator.py index 6ab8c4d356..9366eedfe7 100644 --- a/src/blenderbim/test/bim/module/void/test_operator.py +++ b/src/blenderbim/test/bim/module/void/test_operator.py @@ -135,3 +135,24 @@ class TestAddFilling(test.bim.bootstrap.NewFile): And the object "IfcDoor/Cube" is an "IfcDoor" And the void "IfcOpeningElement/Cube" is filled by "Cube" """ + + +class TestRemoveFilling(test.bim.bootstrap.NewFile): + @test.bim.bootstrap.scenario + def test_adding_a_filling(self): + return """ + Given an empty IFC project + Given I add a cube + When the object "Cube" is selected + And I set "scene.BIMRootProperties.ifc_class" to "IfcOpeningElement" + And I press "bim.assign_class" + And I add a cube + And the object "Cube" is selected + And I set "scene.BIMRootProperties.ifc_class" to "IfcDoor" + And I press "bim.assign_class" + And I press "bim.add_filling(opening='IfcOpeningElement/Cube', obj='IfcDoor/Cube')" + And I press "bim.remove_filling(obj='IfcDoor/Cube')" + Then the object "IfcOpeningElement/Cube" is an "IfcOpeningElement" + And the object "IfcDoor/Cube" is an "IfcDoor" + And the void "IfcOpeningElement/Cube" is not filled by "Cube" + """