#NEWLINE# def test_authorization_requires_supported_response_type( self ) : #NEWLINE# #INDENT# self . login ( ) #NEWLINE# response = self . client . get ( ( self . auth_url ( ) + ( '?client_id=%s&response_type=unsupported' % self . get_client ( ) . client_id ) ) ) #NEWLINE# response = self . client . get ( self . auth_url2 ( ) ) #NEWLINE# self . assertEqual ( 400 , response . status_code ) #NEWLINE# self . assertTrue ( ( escape ( "'unsupported' is not a supported response type." ) in response . content ) ) #NEWLINE# response = self . client . get ( ( self . auth_url ( ) + ( '?client_id=%s&response_type=code' % self . get_client ( ) . client_id ) ) ) #NEWLINE# response = self . client . get ( self . auth_url2 ( ) ) #NEWLINE# self . assertEqual ( 200 , response . status_code , response . content ) #NEWLINE# response = self . client . get ( ( self . auth_url ( ) + ( '?client_id=%s&response_type=token' % self . get_client ( ) . client_id ) ) ) #NEWLINE# response = self . client . get ( self . auth_url2 ( ) ) #NEWLINE# self . assertEqual ( 200 , response . status_code )