#NEWLINE# def test_make_redirect_error_response( self ) : #NEWLINE# #INDENT# response = self . provider . _make_redirect_error_response ( 'https://test.example.com/oauthredirect?param=1234' , 'some_error' ) #NEWLINE# self . assertEquals ( 302 , response . status_code ) #NEWLINE# self . assertEquals ( 'https://test.example.com/oauthredirect?param=1234&error=some_error' , self . headers [ 'Location' ] )