def assert_has_text(output, text):
 assert (output.find(text) >= 0), ("Output file did not contain expected text '%s' (output '%s')" % (text, output))

def assert_has_text ( output , text ) : assert ( output . find ( text ) >= 0 ) , ( "Output file did not contain expected text '%s' (output '%s')" % ( text , output ) )
asserts specified output contains the substring specified by the argument text .