#NEWLINE# def test_token_request_endpoint( self ) : #NEWLINE# #INDENT# ' token request endpoint ' #NEWLINE# auth = app . raw . authorizations [ 'oauth2' ] . grantTypes . authorization_code #NEWLINE# self . assertTrue ( isinstance ( auth . tokenRequestEndpoint , TokenRequestEndpoint ) ) #NEWLINE# self . assertEqual ( auth . tokenRequestEndpoint . url , 'http://petstore.swagger.wordnik.com/api/oauth/requestToken' ) #NEWLINE# self . assertEqual ( auth . tokenRequestEndpoint . clientIdName , 'client_id' ) #NEWLINE# self . assertEqual ( auth . tokenRequestEndpoint . clientSecretName , 'client_secret' )