def test_disable(self): emulation.unpatch(self.PATCH_NAME) for name, standard, patched, getter in self.PATCHES: val = getter() assert val is standard, (name, val)
def tearDown(self): super(MonkeyPatchBase, self).tearDown() emulation.unpatch()