def test_logger_setup(self):
        """Use logger to create a logging filter."""
        logger.setup(None, self.log_config)

        self.assertTrue(len(logging.root.handlers) > 0)
        handler = logging.root.handlers[-1]

        self.assertEqual(len(handler.filters), 1)
        log_filter = handler.filters[0].logfilter

        self.assertEqual(log_filter['default'], logging.WARNING)
        self.assertEqual(log_filter['logs']['test'], logging.INFO)
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/test_logger.py/TestUpdater.test_logger_setup/original