and a JSONRPC test application:
python jsonapp.py
-The latter is where it gets interesting. Session cookies are automatically
+then run the jsonrpclib test:
+ python testjsonrpc.py
+
+The jsonapp.py is where it gets interesting. Session cookies are automatically
used to create application instances which are persistent in memory
(TODO: drop them after an application-specified timeout of course...)
class TestJsolait(unittest.TestCase):
def test_echo(self):
- s = jsonrpclib.ServerProxy("http://127.0.0.1:8080/json", verbose=0)
+ s = jsonrpclib.Server("http://127.0.0.1:8089/json", verbose=0)
reply = s.echo("hello")
print reply
#self.assert_(reply["result"] == "foo bar")