#NEWLINE# def test_memory_session_storage_access_token( self ) : #NEWLINE# #INDENT# client = WeChatClient ( client . app_id , self . secret ) #NEWLINE# with HTTMock ( wechat_api_mock ) : #NEWLINE# #INDENT# token = client . fetch_access_token ( ) #NEWLINE# self . assertEqual ( '1234567890' , token [ 'access_token' ] ) #NEWLINE# self . assertEqual ( 7200 , token [ 'expires_in' ] ) #NEWLINE# self . assertEqual ( '1234567890' , client . access_token )