def test_find_path():

    start_ln = len(routes.routes['GET'])

    @get('/s/foo/{u_id}')
    def foo_route(request):
        return 200, ''

    fn, params = find_path('GET', '/s/foo/a1')

    assert fn == foo_route
    assert params == {'u_id': 'a1'}

    path = re.compile('^/s/foo/(?P<u_id>[\w\-]+)/?$')
    routes.routes['GET'].remove((path, fn))
    assert len(routes.routes['GET']) == start_ln
>>> from lxml import etree as ET
dataset/ETHPy150Open heiskr/sagefy/server/test/test_framework_routes.py/test_find_path--crossover with--dataset/ETHPy150Open Crystalnix/omaha-server/omaha_server/omaha/core.py/Data