def testDuplicateContacts(self):
    self._FetchContacts(self._andy_facebook,
                        self._andy_user.user_id,
                        {'data': [{'id': 200, 'name': 'Rachel Kimball'},
                                  {'id': 200, 'name': 'Rachel Kimball'}]})
    # Should be only one contact after this fetch.
    self._AssertContactCounts(self._andy_user.user_id, 1, 0)

    self._FetchContacts(self._andy_google,
                        self._andy_user.user_id,
                        self._CreateGoogleContactFeed([{'emails': [('rachel@emailscrubbed.com', None)],
                                                        'name': 'Rachel Kimball'},
                                                       {'emails': [('rachel@emailscrubbed.com', None)],
                                                        'name': 'Rachel Kimball'}]))
    # There should be just one more contact now for the one deduped contact fetched for a different contact source.
    self._AssertContactCounts(self._andy_user.user_id, 2, 0)
E[ \lambda_d * \mu_d ]
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/test/fetch_contacts_test.py/FetchContactsTestCase.testDuplicateContacts--crossover with--dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/distr/GaussGammaDistr.py/GaussGammaDistr.E_Lam