def test_non_mapserv_url():
    from c2cgeoportal import ogcproxy_route_predicate
    from pyramid.request import Request

    request = Request.blank('/test?url=http://foo.com/wmts')
    ret = ogcproxy_route_predicate(None, request)
    assert ret
def test_no_url():
    from c2cgeoportal import ogcproxy_route_predicate
    from pyramid.request import Request

    request = Request.blank('/test')
    ret = ogcproxy_route_predicate(None, request)
    assert not ret