def _app(self): '''Opens a ZODB connection and returns the app object. We override it to patch HTTP_ACCEPT_CHARSET into REQUEST to get the zpt unicode conflict resolver to work properly''' app = PortalTestCase._app(self) app.REQUEST['HTTP_ACCEPT_CHARSET'] = 'utf-8' return app