#NEWLINE# def create_test_server( transport , host = 'localhost' , port = 0 ) : #NEWLINE# #INDENT# 'Create a test XML-RPC server in a new thread.' #NEWLINE# server = TestServer ( transport , ( host , port ) , TestHandler ) #NEWLINE# thread = threading . Thread ( target = server . serve_forever , kwargs = { #NEWLINE# #INDENT# 'poll_interval' : 0.01 , #NEWLINE# #UNINDENT# } ) #NEWLINE# thread . start ( ) #NEWLINE# return server