def _app(self): '''Returns the app object for a test.''' app = Zope2.app(Zope2.sandbox().open()) AppZapper().set(app) app = makerequest(app) connections.register(app) return app
def app(): '''Opens a ZODB connection and returns the app object.''' app = Zope2.app() app = makerequest(app) connections.register(app) return app