def testSingleContact(self):
    contacts = self._TestFetchContacts(self._andy_facebook, self._andy_user.user_id,
                                       {'data': [{'id': 200, 'name': 'Rachel Kimball'}]})
    self.assertEqual(contacts[0].identities_properties[0], ['FacebookGraph:200', None])
    self.assertEqual(contacts[0].name, 'Rachel Kimball')

    contacts = self._TestFetchContacts(self._andy_google, self._andy_user.user_id,
                                       self._CreateGoogleContactFeed([{'emails': [('rachel@emailscrubbed.com', None)],
                                                                       'name': 'Rachel Kimball'}]))
    self.assertEqual(contacts[0].identities_properties[0], ['Email:rachel@emailscrubbed.com', None])
    self.assertEqual(contacts[0].name, 'Rachel Kimball')
Test fetch of single contact.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/test/fetch_contacts_test.py/FetchContactsTestCase.testSingleContact