#NEWLINE# def start_http_server( ) : #NEWLINE# #INDENT# 'Starts a simple http server for the test files' #NEWLINE# os . chdir ( TEST_FILES_DIR ) #NEWLINE# handler = SimpleHTTPServer . SimpleHTTPRequestHandler #NEWLINE# httpd = ThreadedTCPServer ( ( 'localhost' , 0 ) , handler ) #NEWLINE# ( ip , port ) = httpd . server_address #NEWLINE# httpd_thread = threading . Thread ( target = httpd . serve_forever ) #NEWLINE# httpd_thread . setDaemon ( True ) #NEWLINE# httpd_thread . start ( ) #NEWLINE# return ( ip , ip , httpd , httpd_thread )