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