Esempio n. 1
0
    def setUp(self):
        super(JSONPRCWebClientTestSuite, self).setUp()

        server_app = JSONPRCWSGIApplication()
        server_app['echo'] = lambda a: a

        self.url = 'http://example.com/rpc'
        self.cl = WebClient(self.url)
Esempio n. 2
0
    def setUp(self):
        super(JSONPRCWSGIApplicationTestSuite, self).setUp()

        def adder(a, b):
            return a + b

        self.app = JSONPRCWSGIApplication(JSONRPC20Serializer)
        self.app.register_function(adder)