Пример #1
0
 def start(self, *args, **kwargs):
     context = dummy_server.ssl_context(*args, **kwargs)
     self.server = reactor.listenSSL(0, dummy_server.HTTP(), context)
     self.port = self.server.getHost().port
     self.config = {'type': 'https',
                    'host': "localhost",
                    'port': self.port}
Пример #2
0
 def setUp(self):
     QueryTestCase.setUp(self)
     context = dummy_server.ssl_context("localhost-a.key",
                                        "localhost-a.cert")
     self.server = reactor.listenSSL(0, dummy_server.HTTP(), context)
     self.port = self.server.getHost().port
     self.config = {'type': 'xmlrpcs',
                    'host': "localhost",
                    'port': self.port}