#NEWLINE# def test_authorization_is_granted( self ) : #NEWLINE# #INDENT# self . login ( ) #NEWLINE# self . _login_and_authorize ( ) #NEWLINE# response = self . client . get ( self . redirect_url ( ) ) #NEWLINE# self . assertEqual ( 302 , response . status_code ) #NEWLINE# self . assertFalse ( ( 'error' in response [ 'Location' ] ) ) #NEWLINE# self . assertTrue ( ( 'code' in response [ 'Location' ] ) )