mirror of
https://github.com/haiwen/libsearpc.git
synced 2025-09-12 12:59:30 +00:00
add all files
This commit is contained in:
22
tests/test_pysearpc.py
Normal file
22
tests/test_pysearpc.py
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
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")
|
||||
|
||||
|
Reference in New Issue
Block a user