#NEWLINE# def test_en_redirect( self ) : #NEWLINE# #INDENT# response = self . client . get ( '/account/register' , HTTP_ACCEPT_LANGUAGE = 'en' , follow = True ) #NEWLINE# self . assertListEqual ( response . redirect_chain , [ ( '/en/account/register/' , 302 ) ] ) #NEWLINE# self . assertRedirects ( response , '/en/account/register/' , 302 ) #NEWLINE# response = self . client . get ( '/prefixed.xml' , HTTP_ACCEPT_LANGUAGE = 'en' , follow = True ) #NEWLINE# self . assertRedirects ( response , '/en/prefixed.xml' , 302 )