def test_setup_yaml(self): log.setup_logging(default_path=get_path('logging.yaml')) logger = logging.getLogger(__name__) print logger.name self.assertEqual(logger.root.level, logging.DEBUG)
def test_setup_json(self): log.setup_logging(default_path = get_path('logging.json')) logger = logging.getLogger(__name__) self.assertEqual(logger.root.level, logging.DEBUG)