1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-07-21 08:39:04 +00:00
libsearpc/pysearpc/test_pysearpc.py
Chilledheart 59c82b2604 [tests] use clar
- enable test in travis-ci script
2014-07-18 09:58:40 +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)