def test_logger_set_level(self):
    logging.setup(self.cfg_path)
    log = logging.getLogger(__name__)
    self.assertEqual(log.getEffectiveLevel(), logbase.DEBUG)
    log.setLevel(logbase.INFO)
    self.assertEqual(log.getEffectiveLevel(), logbase.INFO)
    log.setLevel(logbase.WARN)
    self.assertEqual(log.getEffectiveLevel(), logbase.WARN)
    log.setLevel(logbase.ERROR)
    self.assertEqual(log.getEffectiveLevel(), logbase.ERROR)
    log.setLevel(logbase.CRITICAL)
    self.assertEqual(log.getEffectiveLevel(), logbase.CRITICAL)
    log.setLevel(logbase.AUDIT)
    self.assertEqual(log.getEffectiveLevel(), logbase.AUDIT)
def test_logger_set_level(self):
    logging.setup(self.cfg_path)
    log = logging.getLogger(__name__)
    self.assertEqual(log.getEffectiveLevel(), logbase.DEBUG)
    log.setLevel(logbase.INFO)
    self.assertEqual(log.getEffectiveLevel(), logbase.INFO)
    log.setLevel(logbase.WARN)
    self.assertEqual(log.getEffectiveLevel(), logbase.WARN)
    log.setLevel(logbase.ERROR)
    self.assertEqual(log.getEffectiveLevel(), logbase.ERROR)
    log.setLevel(logbase.CRITICAL)
    self.assertEqual(log.getEffectiveLevel(), logbase.CRITICAL)
    log.setLevel(logbase.AUDIT)
    self.assertEqual(log.getEffectiveLevel(), logbase.AUDIT)