def __call__(self, testcase, *args): # ... only if it takes an arg self._helper = testcase util.call_with_args_if_expected(self.func, testcase, *args)
def tearDown(cls): for func in cls.teardowns: util.call_with_args_if_expected(func, self)
def setUp(cls): for func in cls.setups: util.call_with_args_if_expected(func, self)