"""silence_werkzeug_access_log 烟雾测试."""
import logging
import unittest

from lib.common.flask_access_log_lib import silence_werkzeug_access_log


class TestSilenceAccessLog(unittest.TestCase):
    def test_sets_warning_level(self):
        log = logging.getLogger("werkzeug")
        log.setLevel(logging.INFO)
        silence_werkzeug_access_log()
        self.assertGreaterEqual(log.level, logging.WARNING)


if __name__ == "__main__":
    unittest.main()
