def test_setup(self): log.setup_logging(path='') logger = logging.getLogger(__name__) self.assertEqual(logger.root.level, logging.INFO)
def test_setup_yaml(self): log.setup_logging(path=get_path('logging.yaml')) logger = logging.getLogger(__name__) self.assertEqual(logger.root.level, logging.DEBUG)