def test_setDebugFalse(self): set_debug_mode(False) assert logging.getLogger().getEffectiveLevel() == logging.WARNING assert logging.getLogger("bajoo").getEffectiveLevel() == logging.INFO
def test_setDebugTrue(self): set_debug_mode(True) assert logging.getLogger().getEffectiveLevel() == logging.INFO assert logging.getLogger("bajoo").getEffectiveLevel() == logging.DEBUG