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)
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)