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}
def setUp(self): snmp = plugin.search(query.IQuery, "snmp") snmp.use_bulk(self.bulk) QueryTestCase.setUp(self) return SnmpTestCase.setUp(self)