def METHOD_NAME(self):
    super(CoreTestCase, self).METHOD_NAME()
    self.old_stdout = sys.stdout
    self.cleanup_testfn()
    self.old_argv = sys.argv, sys.argv[:]
    self.addCleanup(log.set_threshold, log._global_log.threshold)