Esempio n. 1
0
 def tearDown(self):
     # don't barf gc info all over the console if we have already failed a
     # test case
     if (self._num_failures < len(getattr(self._result, 'failures', [])) or
             self._num_errors < len(getattr(self._result, 'failures', []))):
         return
     if detect_leaks:
         self.gccollect()
         self.gcverify()
     Zoomable.set_zoom_level(self.__zoom_level)
Esempio n. 2
0
def set_zoom_level_func(scenario, action):
    Zoomable.set_zoom_level(action.structure["level"])

    return True