#NEWLINE# def test_protected_request_override_token_url( self ) : #NEWLINE# #INDENT# self . session . token = { #NEWLINE# #INDENT# 'access_token' : 'dummy-access-token' , #NEWLINE# #UNINDENT# } #NEWLINE# response = self . session . get ( 'https://slack.com/api/auth.test?token=different-token' ) #NEWLINE# url = response . request . url #NEWLINE# query = parse_qs ( urlparse ( url ) . query ) #NEWLINE# self . assertEqual ( query [ 'token' ] , [ 'different-token' ] ) #NEWLINE# self . assertIsNone ( response . request . body )