#NEWLINE# def discover_step_definitions( self ) : #NEWLINE# #INDENT# if ( self . step_registry is None ) : #NEWLINE# #INDENT# self . step_registry = StepRegistry ( ) #NEWLINE# #UNINDENT# for step_type in registry . steps . keys ( ) : #NEWLINE# #INDENT# step_definitions = tuple ( registry . steps [ self ] ) #NEWLINE# for step_definition in step_definitions : #NEWLINE# #INDENT# step_definition . step_type = step_type #NEWLINE# #UNINDENT# self . step_registry . steps [ step_type ] = step_definitions