def testLinkWebUser(self):
    # Register as mobile user, link as web user
    user, device_id = self._tester.RegisterFacebookUser(self._facebook_user_dict, self._mobile_device_dict)
    cookie = self._GetSecureUserCookie(user, device_id)
    user2, device_id2 = self._tester.LinkFacebookUser(self._facebook_user2_dict, user_cookie=cookie)
    self.assertEqual(user.user_id, user2.user_id)
    self.assertNotEqual(device_id, device_id2)

    # And link again as mobile user.
    self._tester.LinkFacebookUser(self._facebook_user2_dict, self._mobile_device_dict, user_cookie=cookie)
    self.assertEqual(len(self._tester.ListIdentities(cookie)), 2)
Forcefully restarts nginx.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/test/auth_facebook_test.py/AuthFacebookTestCase.testLinkWebUser--crossover with--dataset/ETHPy150Open python-provy/provy/provy/more/debian/web/rails.py/RailsRole.restart