#NEWLINE# def testGet301NoRedirect( self ) : #NEWLINE# #INDENT# self . http . follow_redirects = False #NEWLINE# uri = urllib . parse . urljoin ( base , '301/onestep.asis' ) #NEWLINE# destination = urllib . parse . urljoin ( base , '302/final-destination.txt' ) #NEWLINE# ( response , content ) = self . http . request ( uri , 'GET' ) #NEWLINE# self . assertEqual ( self . status , 301 )