def testErrorQuiet(self): s = 'test4' util.set_verbosity(util.VERBOSITY_QUIET) util.error(s) self.assertEqual(s, util._error_stream.getvalue())
def testDebugVerbose(self): s = 'test6' util.set_verbosity(util.VERBOSITY_DEBUG) util.debug(s) self.assertEqual(s, util._write_stream.getvalue())
def testWriteQuiet(self): util.set_verbosity(util.VERBOSITY_QUIET) s = 'test2' util.write(s) self.assertEqual('', util._write_stream.getvalue())