#NEWLINE# def test_fetching_single_access_token_after_refresh( self ) : #NEWLINE# #INDENT# constants . SINGLE_ACCESS_TOKEN = True #NEWLINE# token = self . _login_authorize_get_token ( ) #NEWLINE# self . client . post ( self . access_token_url ( ) , { #NEWLINE# #INDENT# 'grant_type' : 'refresh_token' , #NEWLINE# 'refresh_token' : token [ 'refresh_token' ] , #NEWLINE# 'client_id' : self . get_client ( ) . client_id , #NEWLINE# 'client_secret' : self . get_client ( ) . client_secret , #NEWLINE# #UNINDENT# } ) #NEWLINE# new_token = self . _login_authorize_get_token ( ) #NEWLINE# self . assertNotEqual ( token [ 'access_token' ] , new_token [ 'access_token' ] ) #NEWLINE# constants . SINGLE_ACCESS_TOKEN = False