'Utility assertion: assert that the given stream is empty'

def assertNoOutput(self, stream):

    self.assertEqual(len(stream), 0, ("Stream    should    be    empty:    actually    contains    '%s'" % stream))
