Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/f/t/ftw.maintenanceserver-1.0.1/ftw/maintenanceserver/testing.py   ftw.maintenanceserver(Download)
from ftw.maintenanceserver.server import HTTPServer
from plone.testing import Layer
from threading import Thread
import os
 
    def setUp(self):
        self.httpd = HTTPServer(DOCUMENT_ROOT, PORT)
        self.thread = Thread(target=self.httpd.serve_forever)
        self.thread.start()
        self['URL'] = 'http://localhost:%i/' % PORT