예제 #1
0
 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()
예제 #2
0
 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()
예제 #3
0
 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
예제 #4
0
 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()
예제 #5
0
 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
예제 #6
0
 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
예제 #7
0
 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()
예제 #8
0
 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()
예제 #9
0
 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()