def finalize(self, test): run_all_hooks('after')
def beforeTest(self, test): if not self.before_all_executed: self.before_all_executed = True run_all_hooks('before')