def test_close(self): """ Tests close :return: Tests results """ logger = Logger() logger.setup() logger.close() self.assertEqual(False, logger.is_loaded)
def test_debug_level(self): """ Test debug level :return: Test results """ logger = Logger() logger.setup(10, 10, 10, "logger.log", "", "", 5, None) level = logger.max_detail_log_level() logger.close() self.assertEqual(True, level == 5)
def test_setup(self): """ Tests setup :return: Tests results """ l = Logger() l.setup(10) self.assertEqual(True, l.is_loaded) l.close()