1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-16 06:48:25 +00:00

[tests] use clar

- enable test in travis-ci script
This commit is contained in:
Chilledheart
2014-07-05 16:30:10 +08:00
parent da8fca373a
commit 59c82b2604
15 changed files with 1606 additions and 69 deletions

17
pysearpc/test_pysearpc.py Normal file
View File

@@ -0,0 +1,17 @@
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)