#NEWLINE# def testGet307( self ) : #NEWLINE# #INDENT# uri = urllib . parse . urljoin ( base , '307/onestep.asis' ) #NEWLINE# ( response , content ) = self . http . request ( uri , 'GET' ) #NEWLINE# self . assertEqual ( response . status , 200 ) #NEWLINE# self . assertEqual ( content , b'This is the final destination.\n' ) #NEWLINE# self . assertEqual ( response . previous . status , 307 ) #NEWLINE# self . assertEqual ( response . previous . fromcache , False ) #NEWLINE# ( response , content ) = self . http . request ( uri , 'GET' ) #NEWLINE# self . assertEqual ( response . status , 200 ) #NEWLINE# self . assertEqual ( self . fromcache , True ) #NEWLINE# self . assertEqual ( content , b'This is the final destination.\n' ) #NEWLINE# self . assertEqual ( response . previous . status , 307 ) #NEWLINE# self . assertEqual ( response . previous . fromcache , False )