diff --git a/src/ifcbimtester/features/steps/project_setup.py b/src/ifcbimtester/features/steps/project_setup.py index 984e57ca98..eb627033a2 100644 --- a/src/ifcbimtester/features/steps/project_setup.py +++ b/src/ifcbimtester/features/steps/project_setup.py @@ -27,6 +27,11 @@ def step_impl(context, reason): pass +@step('The project must have an identifier of {guid}') +def step_impl(context, guid): + assert_attribute(IfcFile.get().by_type('IfcProject')[0], 'GlobalId', guid) + + @step('The project name, code, or short identifier must be "{value}"') def step_impl(context, value): assert_attribute(IfcFile.get().by_type('IfcProject')[0], 'Name', value)