def __test_managers(conf): app = minimal_app_for_managers() managers = manager_factory.build_managers(app, conf) try: yield managers finally: for manager in managers.values(): manager.shutdown()
def __setup_managers(self, conf): self.managers = build_managers(self, conf)