#NEWLINE# def test_we_redirect_to_base_url( self ) : #NEWLINE# #INDENT# response = self . client . GxT ( '/' , HTTP_HOST = b'gratipay.com' , HTTP_X_FORWARDED_PROTO = b'http' ) #NEWLINE# assert ( response . code == 302 ) #NEWLINE# assert ( self . headers [ 'Location' ] == b'https://gratipay.com/' )