Did I find the right examples for you? yes no

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

src/w/s/WSME-0.6/wsme/tests/test_restjson.py   WSME(Download)
    import json  # noqa
 
from wsme.rest.json import fromjson, tojson
from wsme.utils import parse_isodatetime, parse_isotime, parse_isodate
from wsme.types import isarray, isdict, isusertype, register_type
    def test_fromjson(self):
        assert fromjson(str, None) is None
 
    def test_keyargs(self):
        r = self.app.get('/argtypes/setint.json?value=2')
    def test_None_fromjson(self):
        for dt in (str, int, datetime.date, datetime.time, datetime.datetime,
                   decimal.Decimal, [int], {int: int}):
            assert fromjson(dt, None) is None
 

src/w/s/wsme-HEAD/wsme/tests/test_restjson.py   wsme(Download)
    import json  # noqa
 
from wsme.rest.json import fromjson, tojson
from wsme.utils import parse_isodatetime, parse_isotime, parse_isodate
from wsme.types import isarray, isdict, isusertype, register_type
    def test_fromjson(self):
        assert fromjson(str, None) is None
 
    def test_keyargs(self):
        r = self.app.get('/argtypes/setint.json?value=2')
    def test_None_fromjson(self):
        for dt in (str, int, datetime.date, datetime.time, datetime.datetime,
                   decimal.Decimal, [int], {int: int}):
            assert fromjson(dt, None) is None