

def test_off_on(self):
    _lazy.USE_LAZY = False
    f = fixture.ToggleLazy(True)
    self.setUp()
    self.assertTrue(_lazy.USE_LAZY)
    f._restore_original()
    self.assertFalse(_lazy.USE_LAZY)

dataset/ETHPy150Open openstack/oslo.i18n/oslo_i18n/tests/test_fixture.py ToggleLazyFixtureText.test_off_on/VarMisuse@25/35 `f`->`self`