def test_one_resource():
    router = wsgiservice.routing.Router([DummyResource1])
    retval = router('/foo/my_id')
    print retval
    assert retval[0]['id'] == 'my_id'
    assert retval[0]['_extension'] is None
    assert retval[1] is DummyResource1
Route matches for one resource and path parameter is extracted.
dataset/ETHPy150Open pneff/wsgiservice/tests/test_router.py/test_one_resource