Example #1
0
    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)
Example #2
0
    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)
Example #3
0
 def tearDown(self):
     super(MonkeyPatchBase, self).tearDown()
     emulation.unpatch()
Example #4
0
 def tearDown(self):
     super(MonkeyPatchBase, self).tearDown()
     emulation.unpatch()