Did I find the right examples for you? yes no

All Samples(21)  |  Call(17)  |  Derive(0)  |  Import(4)

src/c/l/climate-HEAD/climate/api/v2/controllers/lease.py   climate(Download)
    "The ID of the trust created for delegating the rights of the user"
 
    reservations = wtypes.ArrayType(wtypes.DictType(wtypes.text, wtypes.text))
    "The list of reservations belonging to the lease"
 
    events = wtypes.ArrayType(wtypes.DictType(wtypes.text, wtypes.text))

src/c/e/ceilometer-HEAD/ceilometer/api/controllers/v2.py   ceilometer(Download)
        self._traits = map(self._convert_storage_trait, traits)
 
    traits = wsme.wsproperty(wtypes.ArrayType(Trait),
                             get_traits,
                             set_traits)

src/w/s/WSME-0.6/wsme/rest/args.py   WSME(Download)
 
from wsme.types import iscomplex, list_attributes, Unset
from wsme.types import UserType, ArrayType, DictType, File
from wsme.utils import parse_isodate, parse_isotime, parse_isodatetime
import wsme.runtime

src/w/s/wsme-HEAD/wsme/rest/args.py   wsme(Download)
 
from wsme.types import iscomplex, list_attributes, Unset
from wsme.types import UserType, ArrayType, DictType, File
from wsme.utils import parse_isodate, parse_isotime, parse_isodatetime
import wsme.runtime

src/w/s/WSME-0.6/wsme/tests/test_types.py   WSME(Download)
    def test_validate_list_none(self):
        v = types.ArrayType(int)
        assert v.validate(None) is None
 
    def test_validate_list_invalid_member(self):
    def test_array_eq(self):
        l = [types.ArrayType(str)]
        assert types.ArrayType(str) in l
 
    def test_array_sample(self):

src/w/s/wsme-HEAD/wsme/tests/test_types.py   wsme(Download)
    def test_validate_list_none(self):
        v = types.ArrayType(int)
        assert v.validate(None) is None
 
    def test_validate_list_invalid_member(self):
    def test_array_eq(self):
        l = [types.ArrayType(str)]
        assert types.ArrayType(str) in l
 
    def test_array_sample(self):

src/w/s/wsme-HEAD/wsme/tests/test_protocols_commons.py   wsme(Download)
from wsme.exc import InvalidInput
 
from wsme.types import UserType, Unset, ArrayType, DictType
 
 
                return ['1', '2']
        p = params({'a': []})
        assert from_params(ArrayType(int), p, 'a', set()) == [1, 2]
 
    def test_from_params_empty_array(self):
        assert from_params(ArrayType(int), {}, 'a', set()) is Unset

src/w/s/WSME-0.6/wsme/tests/test_protocols_commons.py   WSME(Download)
from wsme.rest.args import from_param, from_params
 
from wsme.types import UserType, Unset, ArrayType, DictType
 
 
                return ['1', '2']
        p = params({'a': []})
        assert from_params(ArrayType(int), p, 'a', set()) == [1, 2]
 
    def test_from_params_empty_array(self):
        assert from_params(ArrayType(int), {}, 'a', set()) is Unset

src/w/s/WSME-0.6/tests/test_sphinxext.py   WSME(Download)
    def test_array_type(self):
        d = wsme.types.ArrayType(str)
        self.assertEqual(sphinxext.datatypename(d), 'list(str)')
        d = wsme.types.ArrayType(ASampleType)
        self.assertEqual(sphinxext.datatypename(d), 'list(ASampleType)')

src/w/s/wsme-HEAD/tests/test_sphinxext.py   wsme(Download)
    def test_array_type(self):
        d = wsme.types.ArrayType(str)
        self.assertEqual(sphinxext.datatypename(d), 'list(str)')
        d = wsme.types.ArrayType(ASampleType)
        self.assertEqual(sphinxext.datatypename(d), 'list(ASampleType)')