def testHappyPath(self):
     req = RequestMock("/priv/pacote/testinho/Testinho/Meu/hello", {'x': ["WORLD!"]})
     (handlerClass, methodName, params) = cengine.request_to_handler(req)
     handler = handlerClass()
     method = getattr(handler, methodName)
     method(**params)
     
Exemplo n.º 2
0
 def makeConvetion(self):
     (handlerClass, methodName, params) = cengine.request_to_handler(self.request)
     handler = handlerClass()
     handler.request = self.request
     handler.get=self.request.get
     handler.write=self.response.out.write
     handler.response = self.response
     handler.handler = self
     handler.redirect=self.redirect
     method = getattr(handler, methodName)
     method(**params)