diff --git a/src/ifcbimtester/features/steps/steps.py b/src/ifcbimtester/features/steps/steps.py index b3b68be5b7..5316f91285 100644 --- a/src/ifcbimtester/features/steps/steps.py +++ b/src/ifcbimtester/features/steps/steps.py @@ -66,6 +66,11 @@ def step_impl(context, ifc_class): assert len(IfcFile.get().by_type(ifc_class)) >= 1 +@then(u'there are no {ifc_class} elements because {reason}') +def step_impl(context, ifc_class, reason): + assert len(IfcFile.get().by_type(ifc_class)) == 0 + + @then('all {ifc_class} elements have a name matching the pattern "{pattern}"') def step_impl(context, ifc_class, pattern): import re