def test_urljoin(script_name, path_info, expected_url):
    """Test all slash+atom combinations for SCRIPT_NAME and PATH_INFO."""
    actual_url = httputil.urljoin(script_name, path_info)
    assert actual_url == expected_url
Test all slash+atom combinations for SCRIPT_NAME and PATH_INFO.
cherrypy/test/test_httputil.py