def testMultipleAuthorities(self):
    # Login as Google user, then as Viewfinder user with same email, then again as same Google user.
    self._tester.RegisterGoogleUser({'name': 'Mike Purtell', 'email': 'mike@emailscrubbed.com', 'verified_email': True})
    self._tester.LoginViewfinderUser({'email': 'mike@emailscrubbed.com'},
                                     self._mobile_device_dict)

    identity = self._RunAsync(Identity.Query, self._client, 'Email:mike@emailscrubbed.com', None)
    self.assertEqual(identity.authority, 'Viewfinder')
    self.assertEqual(identity.expires, 0)

    self._tester.LoginGoogleUser({'email': 'mike@emailscrubbed.com', 'verified_email': True})

    identity = self._RunAsync(Identity.Query, self._client, 'Email:mike@emailscrubbed.com', None)
    self.assertEqual(identity.authority, 'Google')
Returns the :class:`.Engine` or :class:`.Connection` to
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/test/auth_test.py/AuthTestCase.testMultipleAuthorities--crossover with--dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/sql/base.py/Executable.bind