2022-10-01 12:47:48 +08:00
|
|
|
# -------------------------------
|
|
|
|
# Difficult Rocket
|
|
|
|
# Copyright © 2021-2022 by shenjackyuanjie 3695888@qq.com
|
|
|
|
# All rights reserved
|
|
|
|
# -------------------------------
|
|
|
|
|
|
|
|
import unittest
|
2022-10-02 22:24:38 +08:00
|
|
|
# from libs.utils.build import logger as c_logger
|
|
|
|
from trytry.c.logger import logger as py_logger
|
2022-10-01 12:47:48 +08:00
|
|
|
|
|
|
|
|
|
|
|
class LoggerTest(unittest.TestCase):
|
2022-10-02 22:24:38 +08:00
|
|
|
def check_a_logger(self, logger: py_logger.Logger, config: dict):
|
|
|
|
self.assertEqual(logger.trace('aaaa trace'), config)
|
|
|
|
logger.fine('ruaaa fine')
|
|
|
|
logger.debug()
|
2022-10-01 12:47:48 +08:00
|
|
|
|
|
|
|
def test_1_py_logger(self):
|
|
|
|
...
|
2022-10-02 22:24:38 +08:00
|
|
|
|
|
|
|
# def test_2_c_logger(self):
|
|
|
|
# ...
|