def setUp(self): super(TestHTTPAppErrorHandling, self).setUp() self.exc = None self.state = tests.ServerStateForTests() class ErroringResource(object): def post(_, args, content): raise self.exc def lookup_resource(environ, responder): return ErroringResource() self.http_app = http_app.HTTPApp(self.state) self.http_app._lookup_resource = lookup_resource self.app = paste.fixture.TestApp(self.http_app)
def setUp(self): super(TestRequestHooks, self).setUp() self.state = tests.ServerStateForTests() self.http_app = http_app.HTTPApp(self.state) self.app = paste.fixture.TestApp(self.http_app) self.db0 = self.state._create_database('db0')
def setUp(self): super(TestPluggableSyncExchange, self).setUp() self.state = tests.ServerStateForTests() self.state.ensure_database('foo')