Exemple #1
0
 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
Exemple #2
0
 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
Exemple #3
0
 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
Exemple #4
0
 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
Exemple #5
0
 def createServer(self, *responses):
     return testutil.createServer(proxy.Proxy, *responses)
Exemple #6
0
 def createServer(self, *responses):
     return testutil.createServer(proxy.Proxy, *responses)