def setUp(self): self.port = '14834' self.ssl_port = '14835' pem = "cardstories.pem" fd = open(pem, "w") fd.write(snake_oil_cert) fd.close() options = tap.Options() options.parseOptions(['--port', self.port, '--ssl-port', self.ssl_port, '--ssl-pem', pem, '--db', 'test.sqlite' ]) self.service = tap.makeService(options) self.service.startService()
def test00_start_stop(self): self.port = "14834" options = tap.Options() options.parseOptions(["--port", self.port, "--db", "test.sqlite", "--plugins-dir", "..", "--plugins", "plugin"]) self.service = tap.makeService(options) for service in self.service: if isinstance(service, CardstoriesService): break self.service.startService() self.assertEqual(service.plugin_event["type"], "start") d = self.service.stopService() self.assertEqual(service.plugin_event["type"], "stop") return d
def setUp(self): self.port = "14834" self.ssl_port = "14835" pem = "cardstories.pem" fd = open(pem, "w") fd.write(snake_oil_cert) fd.close() options = tap.Options() options.parseOptions( ["--port", self.port, "--ssl-port", self.ssl_port, "--ssl-pem", pem, "--db", "test.sqlite"] ) self.service = tap.makeService(options) self.service.startService()
def test00_start_stop(self): self.port = '14834' options = tap.Options() options.parseOptions(['--port', self.port, '--db', 'test.sqlite', '--plugins-dir', '..', '--plugins', 'plugin']) self.service = tap.makeService(options) for service in self.service: if isinstance(service, CardstoriesService): break self.service.startService() self.assertEqual(service.plugin_event['type'], 'start') d = self.service.stopService() self.assertEqual(service.plugin_event['type'], 'stop') return d
def setUp(self): self.port = "14834" options = tap.Options() options.parseOptions(["--port", self.port, "--db", "test.sqlite"]) self.service = tap.makeService(options) self.service.startService()
def setUp(self): self.port = '14834' options = tap.Options() options.parseOptions(['--port', self.port, '--db', 'test.sqlite' ]) self.service = tap.makeService(options) self.service.startService()