1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-07-16 22:41:04 +00:00
libsearpc/tests/test_pysearpc.py
2012-06-10 09:11:12 +08:00

18 lines
341 B
Python

import sys
sys.path += ['..']
from pysearpc import SearpcClient, searpc_func, SearpcError
class SampleRpcClient(SearpcClient):
def call_remote_func_sync(self, fcall_str):
return ""
@searpc_func("void", ["string", "int"])
def list_peers(self):
pass
client = SampleRpcClient()
client.list_peers("id", 10)