예제 #1
0
 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()
예제 #2
0
파일: case.py 프로젝트: socek/impaf
 def tearDown(self):
     for patch in self._patchers:
         patch.stop()
예제 #3
0
def unmock():
    patch.stop()
예제 #4
0
def teardown_module():
    patch.stop()
예제 #5
0
 def __exit__(self, exc_type, exc_value, traceback):
     for patch in self.settings_patches:
         patch.stop()
     self.patcher.stop()
예제 #6
0
def unmock():
    patch.stop()
예제 #7
0
 def tearDown(self):
     for patch in self._patches:
         patch.stop()
예제 #8
0
 def __exit__(self, exc_type, exc_value, traceback):
     for patch in self.settings_patches:
         patch.stop()
     self.patcher.stop()
예제 #9
0
def tearDownModule():
    for patch in PATCHES:
        patch.stop()