Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Add a clean function to be called from cleanUp.

All cleanup functions are called - see cleanUp for details on how
multiple exceptions are handled.

If for some reason you need to cancel cleanups, call
self._clear_cleanups.

:param cleanup: A callable to call during cleanUp.
:param *args: Positional args for cleanup.(more...)

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