def __exit__(self, *args): """ Stops all patched objects using 'with' context management. No error checking or stack trace evaluation occurs at the moment. """ for patch in self.patch_objects: patch.stop()
def tearDown(self): for patch in self._patchers: patch.stop()
def unmock(): patch.stop()
def teardown_module(): patch.stop()
def __exit__(self, exc_type, exc_value, traceback): for patch in self.settings_patches: patch.stop() self.patcher.stop()
def tearDown(self): for patch in self._patches: patch.stop()
def tearDownModule(): for patch in PATCHES: patch.stop()