Did I find the right examples for you? yes no

All Samples(10)  |  Call(6)  |  Derive(0)  |  Import(4)

src/w/s/WSME-0.6/wsme/root.py   WSME(Download)
from wsme.exc import ClientSideError, UnknownFunction
from wsme.protocol import getprotocol
from wsme.rest import scan_api
from wsme import spore
import wsme.api

src/w/s/wsme-HEAD/wsme/root.py   wsme(Download)
from wsme.exc import ClientSideError, UnknownFunction
from wsme.protocol import getprotocol
from wsme.rest import scan_api
from wsme import spore
import wsme.api

src/w/s/wsme-HEAD/wsme/tests/test_api.py   wsme(Download)
 
from wsme import WSRoot, expose, validate
from wsme.rest import scan_api
from wsme.api import FunctionArgument, FunctionDefinition
from wsme import types
        r = MyRoot()
 
        api = list(scan_api(r))
        assert len(api) == 1
        path, fd, args = api[0]
 
        r = MyRoot()
        api = list(scan_api(r))
 
        assert len(api) == 0
 
        try:
            list(scan_api(r))
            assert False, "ValueError not raised"
        except ValueError as e:

src/w/s/WSME-0.6/wsme/tests/test_api.py   WSME(Download)
 
from wsme import WSRoot, expose, validate
from wsme.rest import scan_api
from wsme.api import FunctionArgument, FunctionDefinition
from wsme import types
        r = MyRoot()
 
        api = list(scan_api(r))
        assert len(api) == 1
        path, fd, args = api[0]
 
        r = MyRoot()
        api = list(scan_api(r))
 
        assert len(api) == 0
 
        try:
            list(scan_api(r))
            assert False, "ValueError not raised"
        except ValueError as e: