def test_vprint_debug(self): stream = StringIO() stream_handler.stream = stream verbosity_set_level(VERBOSE_LEVEL, debug=True) vprint("vprint") vvprint("vvprint") vvvprint("vvvprint") self.assertEqual(stream.getvalue(), "vprint\nvvprint\nvvvprint\n")
def test_print(self): vprint("vprint") vvprint("vvprint") vvvprint("vvvprint") self.assertEqual(stream.getvalue(), "")