#NEWLINE# def test_oauth2_redirect( self ) : #NEWLINE# #INDENT# response = self . fetch ( '/oauth2/client/login' , follow_redirects = False ) #NEWLINE# self . assertEqual ( response . code , 302 ) #NEWLINE# self . assertTrue ( ( '/oauth2/server/authorize?' in response . headers [ 'Location' ] ) )