'Utility assertion: assert that the given message exists in the output'

def assertOutput(self, stream, msg):

    stream = force_text(stream)
    self.assertTrue((msg in stream), (u"'%s'    does    not    match    actual    output    text    '%s'" % (msg, stream)))
