def create_test_server(transport, host='localhost', port=0):
    server = TestServer(transport, (host, port), TestHandler)
    thread = threading.Thread(target=server.serve_forever,
                              kwargs={'poll_interval': 0.01})
    thread.start()
    return server
Create a test XML-RPC server in a new thread.
dataset/ETHPy150Open softlayer/softlayer-python/SoftLayer/testing/xmlrpc.py/create_test_server