#NEWLINE# def get( self , url , status = 200 ) : #NEWLINE# #INDENT# conn = HTTPConnection ( self . defaulthost ) #NEWLINE# conn . request ( 'GET' , url ) #NEWLINE# response = conn . getresponse ( ) #NEWLINE# body = response . read ( ) #NEWLINE# conn . close ( ) #NEWLINE# self . assertEqual ( response . status , status ) #NEWLINE# try : #NEWLINE# #INDENT# body = body . decode ( ) #NEWLINE# #UNINDENT# except UnicodeDecodeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# return body