def METHOD_NAME(self):
    with patch(
        "allauth.socialaccount.providers.draugiem.views.draugiem_complete_login"
    ) as draugiem_complete_login:
        self.mock_socialaccount_state()
        response_json = self.get_draugiem_login_response()
        token = SocialToken(app=self.app, token=response_json["apikey"])
        login = self.get_socialaccount(response_json, token)
        draugiem_complete_login.return_value = login
        response = self.client.get(
            reverse(views.callback),
            {"dr_auth_status": "ok", "dr_auth_code": "42"},
        )
        self.assertRedirects(
            response, "/accounts/profile/", fetch_redirect_response=False
        )