Did I find the right examples for you? yes no

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)
Apply all of the patches that have been specified with `add_patch`.

Reverse this operation using L{restore}.

src/s/a/saucelabsfixture-0.1/saucelabsfixture/sst.py   saucelabsfixture(Download)
            (actions, "stop", self.noop))
        self.addCleanup(patcher.restore)
        patcher.patch()
 

src/t/e/testtools-HEAD/testtools/_spinner.py   testtools(Download)
            debug.add_patch(defer.Deferred, 'debug', True)
            debug.add_patch(DelayedCall, 'debug', True)
        debug.patch()
        try:
            junk = self.get_junk()

src/t/e/testtools-HEAD/testtools/tests/test_monkey.py   testtools(Download)
        patcher = MonkeyPatcher((self.test_object, 'foo', 'haha'),
                                (self.test_object, 'bar', 'hehe'))
        patcher.patch()
        self.assertEquals('haha', self.test_object.foo)
        self.assertEquals('hehe', self.test_object.bar)

src/t/e/testtools-0.9.35/testtools/_spinner.py   testtools(Download)
            debug.add_patch(defer.Deferred, 'debug', True)
            debug.add_patch(DelayedCall, 'debug', True)
        debug.patch()
        try:
            junk = self.get_junk()

src/t/e/testtools-0.9.35/testtools/tests/test_monkey.py   testtools(Download)
        patcher = MonkeyPatcher((self.test_object, 'foo', 'haha'),
                                (self.test_object, 'bar', 'hehe'))
        patcher.patch()
        self.assertEquals('haha', self.test_object.foo)
        self.assertEquals('hehe', self.test_object.bar)