#NEWLINE# def report_step_definition_docs( self ) : #NEWLINE# #INDENT# step_definitions = [ ] #NEWLINE# for step_type in step_type . step_types : #NEWLINE# #INDENT# for step_definition in self . step_registry . steps [ step_type ] : #NEWLINE# #INDENT# assert ( step_definition . step_type is not None ) #NEWLINE# step_definitions . append ( step_definition ) #NEWLINE# #UNINDENT# #UNINDENT# if self . ordered_by_location : #NEWLINE# #INDENT# step_definitions = sorted ( step_definitions , key = attrgetter ( 'location' ) ) #NEWLINE# #UNINDENT# for step_definition in step_definitions : #NEWLINE# #INDENT# self . write_step_definition ( step_definition )