Beispiel #1
0
    def test_driver(self):
        class MockServer(object):

            def serve_forever(self):
                LOG = logging.getLogger(__name__)
                LOG.info("Mock Server - Started")

        mock_server_object = MockServer()
        from stealth.transport.wsgi.driver import Driver
        with patch.object(simple_server,
                          'make_server',
                          return_value=mock_server_object):
            app_container = Driver()
            app_container.listen()
Beispiel #2
0
def run():
    app_container = Driver()
    app_container.listen()