This repository has been archived on 2024-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
2023-07-08 00:37:07 +02:00
|
|
|
"""
|
|
|
|
test the logger
|
|
|
|
"""
|
|
|
|
import unittest
|
|
|
|
from libpt import logger
|
|
|
|
|
|
|
|
class TestLogger(unittest.TestCase):
|
|
|
|
|
|
|
|
def test_basic_logging(self):
|
|
|
|
logger.Logger.init()
|
|
|
|
l = logger.Logger()
|
|
|
|
l.trace("MSG")
|
|
|
|
l.debug("MSG")
|
|
|
|
l.info("MSG")
|
|
|
|
l.warn("MSG")
|
|
|
|
l.error("MSG")
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main()
|
|
|
|
|
|
|
|
|