move example to different port
[multitaskhttpd.git] / testjsonrpc.py
1 import unittest
2 import jsonrpclib
3
4 class TestJsolait(unittest.TestCase):
5 def test_echo(self):
6 s = jsonrpclib.Server("http://127.0.0.1:8089/json", verbose=0)
7 reply = s.echo("hello")
8 print reply
9 #self.assert_(reply["result"] == "foo bar")
10
11
12 if __name__=="__main__":
13 unittest.main()