1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-06-19 18:31:54 +00:00
libsearpc/tests/test_pysearpc.py
2011-04-08 20:58:15 +08:00

23 lines
413 B
Python

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