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