def test_set_debugging_off(self): log.set_debugging(True) log.debug('test') log.set_debugging(False) log.debug('test2') self.mock_log.msg.assert_called_once_with('test', logLevel='DEBUG')
def test_set_debugging_default(self): log.set_debugging() log.debug('test') self.mock_log.msg.assert_called_once_with('test', logLevel='DEBUG')
def tearDown(self): log.set_debugging(False) self.mock_log_patcher.stop()