diff options
Diffstat (limited to '')
-rw-r--r-- | sca-cpp/trunk/modules/python/client-test.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sca-cpp/trunk/modules/python/client-test.py b/sca-cpp/trunk/modules/python/client-test.py index 47e6cf4bda..3c7183e865 100644 --- a/sca-cpp/trunk/modules/python/client-test.py +++ b/sca-cpp/trunk/modules/python/client-test.py @@ -15,21 +15,26 @@ # specific language governing permissions and limitations # under the License. +import unittest + # JSON-RPC test case def echo(x, ref): - return ref("echo", x) + e1 = ref("echo", x) + e2 = ref.echo(x) + assert e1 == e2 + return e1 # ATOMPub test case def get(id, ref): - return ref("get", id) + return ref.get(id); def post(collection, item, ref): - return ref("post", collection, item) + return ref.post(collection, item) def put(id, item, ref): - return ref("put", id, item) + return ref.put(id, item) def delete(id, ref): - return ref("delete", id) + return ref.delete(id) |