def METHOD_NAME(self):
    resp = self.client.get(reverse('account_login'))
    with patch('allauth.socialaccount.providers.facebook.views'
               '.requests') as requests_mock:
        mocks = [self.get_mocked_response().json()]
        requests_mock.get.return_value.json \
            = lambda: mocks.pop()
        resp = self.client.post(reverse('facebook_login_by_token'),
                                data={'access_token': 'dummy'})
        self.assertRedirects(
            resp, "/accounts/profile/", fetch_redirect_response=False
        )