Example #1
0
    def test_close(self):
        """
        Tests close
        :return: Tests results
        """
        logger = Logger()
        logger.setup()
        logger.close()

        self.assertEqual(False, logger.is_loaded)
Example #2
0
    def test_close(self):
        """
        Tests close
        :return: Tests results
        """
        logger = Logger()
        logger.setup()
        logger.close()

        self.assertEqual(False, logger.is_loaded)
Example #3
0
    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)
Example #4
0
    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)
Example #5
0
    def test_setup(self):
        """
        Tests setup
        :return: Tests results
        """
        l = Logger()

        l.setup(10)

        self.assertEqual(True, l.is_loaded)

        l.close()
Example #6
0
    def test_setup(self):
        """
        Tests setup
        :return: Tests results
        """
        l = Logger()

        l.setup(10)

        self.assertEqual(True, l.is_loaded)

        l.close()