def test_default_value():

    class User(wsgiservice.Resource):

        def POST(self, foo, bar, id=5):
            return {'id': id, 'bar': bar, 'foo': foo}

    data = {'foo': 'baz1', 'bar': 'baz2'}
    req = webob.Request.blank('/', headers={'Accept': 'application/json',
                                            'Content-Type': 'application/json'},
                              method='POST', body=json.dumps(data))
    res = webob.Response()
    usr = User(request=req, response=res, path_params={})
    res = usr()
    print res
    obj = json.loads(res.body)
    print obj
    assert obj == {'id': 5, 'foo': 'baz1', 'bar': 'baz2'}
Returns a directory contains a file in a specified view if not a
dataset/ETHPy150Open pneff/wsgiservice/tests/test_resource_json.py/test_default_value--crossover with--dataset/ETHPy150Open spywhere/Javatar/core/state_property.py/_StateProperty.get_dir