def test_account_exists_migrated_multiple(self):
        UserProfile.objects.create(email='real@yeahoo.com', username='foo')
        UserProfile.objects.create(
            email='different@yeahoo.com', fxa_id='9005', username='bar')
        self.fxa_identify.return_value = {'email': 'real@yeahoo.com',
                                          'uid': '9005'}
        with self.assertRaises(UserProfile.MultipleObjectsReturned):
            self.client.post(
                self.url, {'code': 'code', 'state': 'some-blob'})
        assert not self.login_user.called
Test that login fails if the user is logged in but the fxa_id is
dataset/ETHPy150Open mozilla/addons-server/src/olympia/accounts/tests/test_views.py/TestLoginView.test_account_exists_migrated_multiple