#NEWLINE# def testSingleContact( self ) : #NEWLINE# #INDENT# 'Test fetch of single contact.' #NEWLINE# contacts = self . _TestFetchContacts ( self . _andy_facebook , self . _andy_user . user_id , { #NEWLINE# #INDENT# 'data' : [ { #NEWLINE# #INDENT# 'id' : 200 , #NEWLINE# 'name' : 'Rachel Kimball' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( contacts [ 0 ] . identities_properties [ 0 ] , [ 'FacebookGraph:200' , None ] ) #NEWLINE# self . assertEqual ( contacts [ 0 ] . name , 'Rachel Kimball' ) #NEWLINE# contacts = self . _TestFetchContacts ( self . _andy_google , self . _andy_user . user_id , self . _CreateGoogleContactFeed ( [ { #NEWLINE# #INDENT# 'emails' : [ ( 'rachel@emailscrubbed.com' , None ) ] , #NEWLINE# 'name' : 'Rachel Kimball' , #NEWLINE# #UNINDENT# } ] ) ) #NEWLINE# self . assertEqual ( contacts [ 0 ] . identities_properties [ 0 ] , [ 'Email:rachel@emailscrubbed.com' , None ] ) #NEWLINE# self . assertEqual ( contacts [ 0 ] . name , 'Rachel Kimball' )