#NEWLINE# @ patch . object ( step_registry . registry , 'add_step_definition' ) #NEWLINE# def test_make_step_decorator_ends_up_adding_a_step_definition( self , add_step_definition ) : #NEWLINE# #INDENT# step_type = object ( ) #NEWLINE# string = object ( ) #NEWLINE# func = object ( ) #NEWLINE# decorator = step_registry . registry . make_decorator ( step_type ) #NEWLINE# wrapper = decorator ( string ) #NEWLINE# assert ( wrapper ( func ) is string ) #NEWLINE# add_step_definition . assert_called_with ( step_type , string , func )