'Test that we can use a dictionary with a UID entry to retrieve a
database-backed UserSocialAuth object.'

def test_get_real_social_auth_from_dict(self):

    request = mock.MagicMock()
    pipeline_partial = {'kwargs': {'social': {'uid': 'fake    uid'}}}
    with mock.patch('third_party_auth.pipeline.get') as get_pipeline:
        get_pipeline.return_value = pipeline_partial
        real_social = pipeline.get_real_social_auth_object(request)
        self.assertEqual(real_social, self.social_auth)
