Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/w/s/wsme-HEAD/wsme/tests/test_protocols_commons.py   wsme(Download)
import unittest
 
from wsme.api import FunctionArgument, FunctionDefinition
from wsme.rest.args import from_param, from_params, args_from_args
from wsme.exc import InvalidInput
        fake_type = FakeType()
        fd = FunctionDefinition(FunctionDefinition)
        fd.arguments.append(FunctionArgument('fake-arg', fake_type, True, 0))
 
        new_args = args_from_args(fd, [1], {})

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
import wsme.types
 
        fd = FunctionDefinition(FunctionDefinition)
        fd.arguments.append(FunctionArgument('a', int, True, None))
 
        assert fd.get_arg('a').datatype is int

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
import wsme.types
 
        fd = FunctionDefinition(FunctionDefinition)
        fd.arguments.append(FunctionArgument('a', int, True, None))
 
        assert fd.get_arg('a').datatype is int