#NEWLINE# @ then ( 'the output will contain the text "{expected}"' ) #NEWLINE# def output_will_contain( context , expected ) : #NEWLINE# #INDENT# expected = expected . format ( ** context . integration_testing ) #NEWLINE# assert ( expected in context . executions [ 0 ] [ 'stdout' ] ) , ( '%s not in %s' % ( expected , context . executions [ 0 ] [ 'stdout' ] ) )