#NEWLINE# def test_run_sets_text_if_present( self ) : #NEWLINE# #INDENT# step = Step ( 'foo.feature' , 17 , 'Given' , 'given' , 'foo' , text = Mock ( name = 'text' ) ) #NEWLINE# self . runner . step_registry . find_match . return_value = Mock ( ) #NEWLINE# step . run ( self . runner ) #NEWLINE# eq_ ( self . context . text , step . text )