#NEWLINE# def configure_httpresponse( self , headers = None , reason = b'' , status = 200 , version = HTTP_1_1 ) : #NEWLINE# #INDENT# 'Helper function to configure a mocked urllib3 response.' #NEWLINE# self . httpresponse . headers = HTTPHeaderDict ( ( headers or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . httpresponse . reason = reason #NEWLINE# self . httpresponse . status = status #NEWLINE# self . httpresponse . version = version