'Use logger to create a logging filter.'

def test_logger_setup(self):

    self.setup_logger(TEST_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)
