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:
17
pysearpc/test_pysearpc.py
Normal file
17
pysearpc/test_pysearpc.py
Normal 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)
|
Reference in New Issue
Block a user