def test_url_path_route(self):
     """Test url, path, route gets joined properly no matter the slashes."""
     r = join_url("https://test.com", "a", "b")
     assert r == "https://test.com/a/b"
     r = join_url("https://test.com", "/a", "b")
     assert r == "https://test.com/a/b"
     r = join_url("https://test.com", "//a", "b")
     assert r == "https://test.com/a/b"
     r = join_url("https://test.com", "a", "b/c/d")
     assert r == "https://test.com/a/b/c/d"
 def test_url_path(self):
     """Test url, path gets joined properly no matter the slashes."""
     r = join_url("https://test.com", "a")
     assert r == "https://test.com/a"
     r = join_url("https://test.com", "/a")
     assert r == "https://test.com/a"
     r = join_url("https://test.com", "//a")
     assert r == "https://test.com/a"
     r = join_url("https://test.com", "a/")
     assert r == "https://test.com/a/"
     r = join_url("https://test.com", "a/b")
     assert r == "https://test.com/a/b"
     r = join_url("https://test.com", "a/b", "")
     assert r == "https://test.com/a/b"
     r = join_url("https://test.com", "a/b/", "")
     assert r == "https://test.com/a/b/"
     r = join_url("https://test.com", "a/b", "/")
     assert r == "https://test.com/a/b/"
     r = join_url("https://test.com", "a/b", "/////")
     assert r == "https://test.com/a/b/"
 def test_url(self):
     """Test url gets joined properly no matter the slashes."""
     r = join_url("https://test.com")
     assert r == "https://test.com/"
     r = join_url("https://test.com/")
     assert r == "https://test.com/"
     r = join_url("https://test.com////")
     assert r == "https://test.com/"
     r = join_url("https://test.com", "")
     assert r == "https://test.com/"
     r = join_url("https://test.com", "", "")
     assert r == "https://test.com/"
     r = join_url("https://test.com", "/", "")
     assert r == "https://test.com/"
     r = join_url("https://test.com", "/", "/")
     assert r == "https://test.com/"