Example #1
0
 def controller(self, pyramid_request):
     pyramid_request.method = "POST"
     pyramid_request.POST["token"] = "the-token"
     pyramid_request.headers = {"X-Test-ID": "1234"}
     return views.OAuthRevocationController(pyramid_request)
Example #2
0
 def controller(self, pyramid_request):
     pyramid_request.method = 'POST'
     pyramid_request.POST['token'] = 'the-token'
     pyramid_request.headers = {'X-Test-ID': '1234'}
     return views.OAuthRevocationController(pyramid_request)