def createServer(self, *responses, **kwds): """ Create a server for each test. """ protocol = kwds.get("protocol", proxybase.ProxyBase) clock = Clock() proto_args = dict(reactor_=clock) server = testutil.createServer(protocol, *responses, proto_args=proto_args) return server
def createServer(self, services, fallback=None, responses=[]): server = testutil.createServer(lambda config: svcbindproxy.ServiceBindingProxy( config=config, services=services, fallback=fallback, ), baseDN='dc=example,dc=com', *responses) server.now = '20050213140302Z' server.timestamp = lambda : server.now return server
def createServer(self, *responses): return testutil.createServer(proxy.Proxy, *responses)