def has_in_url_path(url, sub):
    scheme, netloc, path, query, fragment = urlparse.urlsplit(url)
    return sub in path
Test if the `sub` string is in the `url` path.
dataset/ETHPy150Open openstack/django_openstack_auth/openstack_auth/utils.py/has_in_url_path