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