#NEWLINE# def makeProxyClient( self , request , method = 'GET' , headers = None , requestBody = '' ) : #NEWLINE# #INDENT# "\n        Make a L{ProxyClient} object used for testing.\n\n        @param request: The request to use.\n        @param method: The HTTP method to use, GET by default.\n        @param headers: The HTTP headers to use expressed as a dict. If not\n            provided, defaults to {'accept': 'text/html'}.\n        @param requestBody: The body of the request. Defaults to the empty\n            string.\n        @return: A L{ProxyClient}\n        " #NEWLINE# if ( headers is None ) : #NEWLINE# #INDENT# headers = { #NEWLINE# #INDENT# 'accept' : 'text/html' , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# path = ( '/' + request . postpath ) #NEWLINE# return ProxyClient ( method , path , 'HTTP/1.0' , headers , requestBody , request )