#NEWLINE# def testGetAccountInfo( self ) : #NEWLINE# #INDENT# with mock . patch ( 'identitytoolkit.rpchelper.RpcHelper._InvokeGitkitApi' ) as rpc_mock : #NEWLINE# #INDENT# rpc_mock . return_value = { #NEWLINE# #INDENT# 'users' : [ { #NEWLINE# #INDENT# 'email' : self . email , #NEWLINE# 'localId' : self . user_id , #NEWLINE# 'displayName' : gitkit_user . user_name , #NEWLINE# 'photoUrl' : self . user_photo , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } #NEWLINE# gitkit_user = self . gitkitclient . GetUserByEmail ( self . email ) #NEWLINE# self . assertEqual ( self . user_id , gitkit_user . user_id ) #NEWLINE# self . assertEqual ( self . email , gitkit_user . email ) #NEWLINE# self . assertEqual ( self . user_name , gitkit_user . name ) #NEWLINE# self . assertEqual ( self . user_photo , gitkit_user . photo_url )