#NEWLINE# def testGetGZip( self ) : #NEWLINE# #INDENT# uri = urllib . parse . urljoin ( base , 'gzip/final-destination.txt' ) #NEWLINE# ( response , content ) = self . http . request ( uri , 'GET' ) #NEWLINE# self . assertEqual ( response . status , 200 ) #NEWLINE# self . assertFalse ( ( 'content-encoding' in response ) ) #NEWLINE# self . assertTrue ( ( '-content-encoding' in self ) ) #NEWLINE# self . assertEqual ( int ( response [ 'content-length' ] ) , len ( b'This is the final destination.\n' ) ) #NEWLINE# self . assertEqual ( content , b'This is the final destination.\n' )