diff wibble/client/ServerProxy.py @ 7:3a6f3193cc7d

Created new tests
author Ben Croston <ben@croston.org>
date Thu, 01 Sep 2011 19:19:03 +0100
parents f5e3ba8cfcd0
children 685479d1f0a7
line wrap: on
line diff
--- a/wibble/client/ServerProxy.py	Wed Aug 31 22:49:23 2011 +0100
+++ b/wibble/client/ServerProxy.py	Thu Sep 01 19:19:03 2011 +0100
@@ -175,14 +175,14 @@
 
 if __name__ == '__main__':
     ##### btc fixme
-    jsonrpc_client = ServerProxy2('http://localhost:1337/', username='testuser', password='', user_agent='Py2NotInternetExploiter')
-    #jsonrpc_client = ServerProxy2('https://www.croston.org/test/index.py',
+    jsonrpc_client = ServerProxy('http://localhost:1337/', username='testuser', password='', user_agent='Py2NotInternetExploiter')
+    #jsonrpc_client = ServerProxy('https://www.croston.org/test/index.py',
     #                             username='testuser',
     #                             password='',
     #                             user_agent='Py2NotInternetExploiter')
     assert jsonrpc_client.api.mymethod() == jsonrpc_client.mymethod()
     try:
-        print(jsonrpc_client.wibble('this should fail'))
+        print jsonrpc_client.wibble('this should fail')
     except BadRequestException:
         pass # test passed
     else: