How can I set the value for request.authenticated_userid in pyramid framework of python -
i getting error when try set attribute authenticated_userid request parameter. nosetest using mock request , see response. traceback (most recent call last): file "/web/core/pulse/wapi/tests/testwapiutilities_integration.py", line 652, in setup setattr(self.request, 'authenticated_userid', self.data['user'].id) attributeerror: can't set attribute code below @attr(can_split=false) class logsuspiciousrequestandraisehttperror(integrationtestcase): def setup(self): super(logsuspiciousrequestandraisehttperror, self).setup() pyramid.request import request pyramid.threadlocal import get_current_registry request = request({ 'server_protocol': 'testprotocol', 'server_name': 'test server name', 'server_port': '80', }) request.context = testcontext() request.root = request.context request.subpath = [...