def runHttpServer(server_class=BaseHTTPServer.HTTPServer,
        handler_class=TestHTTPHandler):
    server_address = ('localhost', 12345)
    httpd = server_class(server_address, handler_class)
    
    httpd.handle_request()
    httpd.handle_request()
    httpd.handle_request()
Start a server than can handle 3 requests :)
dataset/ETHPy150Open RDFLib/rdflib/test/test_conneg.py/runHttpServer