

def test_unset_before(self):
    logger = logging.getLogger('no-such-logger-unset')
    self.assertEqual(logging.NOTSET, self.level)
    fix = fixture.SetLogLevel(['no-such-logger-unset'], logging.DEBUG)
    with fix:
        self.assertEqual(logging.DEBUG, logger.level)
    self.assertEqual(logging.NOTSET, logger.level)

dataset/ETHPy150Open openstack/oslo.log/oslo_log/tests/unit/fixture/test_setlevel.py TestSetLevelFixture.test_unset_before/VarMisuse@27/42 `logger`->`self`