def assert_not_has_text(output, text):
 assert (output.find(text) < 0), ("Output file contains unexpected text '%s'" % text)

def assert_not_has_text ( output , text ) : assert ( output . find ( text ) < 0 ) , ( "Output file contains unexpected text '%s'" % text )
asserts specified output does not contain the substring specified the argument text .