@@ -170,29 +170,34 @@ def test_creating_a_minimal_ids_and_validating(self):
170170 waldo = model .createIfcSlab (Name = "Waldo" )
171171 run ("Optional specifications may still pass if nothing is applicable" , specs , model , True )
172172
173+ specs = ids .Ids (title = "Title" )
174+ spec = ids .Specification (name = "Name" )
175+ spec .applicability .append (ids .Entity (name = "IFCWALL" ))
176+ spec .applicability .append (ids .Attribute (name = "Name" , value = "Waldo" ))
177+ specs .specifications .append (spec )
173178 spec .set_usage ("prohibited" )
174179 model = ifcopenshell .file ()
175180 wall = model .createIfcSlab (Name = "Waldo" )
176- run ("Prohibited specifications fail if at least one entity passes all requirements 1/3" , specs , model , True )
181+ run ("Prohibited specifications fail if at least one entity is applicable 1/3" , specs , model , True )
177182 model = ifcopenshell .file ()
178183 wall = model .createIfcWall (Name = "Wally" )
179184 run (
180- "Prohibited specifications fail if at least one entity passes all requirements 2/3" ,
185+ "Prohibited specifications fail if at least one entity is applicable 2/3" ,
181186 specs ,
182187 model ,
183188 True ,
184- [wall ],
189+ [],
185190 [],
186191 )
187192 model = ifcopenshell .file ()
188193 wall = model .createIfcWall (Name = "Waldo" )
189194 run (
190- "Prohibited specifications fail if at least one entity passes all requirements 3/3" ,
195+ "Prohibited specifications fail if at least one entity is applicable 3/3" ,
191196 specs ,
192197 model ,
193198 False ,
194199 [wall ],
195- [wall ],
200+ [],
196201 )
197202
198203 spec .set_usage ("optional" )
0 commit comments