def test_urljoin_trivial(self): pre = "http://www.cwi.nl/" post = "FAQ.html" res = url_helper.url_join(pre, post) self.assertEqual("http://www.cwi.nl/FAQ.html", res) pre = "http://www.cwi.nl/" res = url_helper.url_join(pre, post) self.assertEqual("http://www.cwi.nl/FAQ.html", res)
def test_urljoin(self): pre = "http://www.cwi.nl/%7Eguido/Python.html" post = "FAQ.html" res = url_helper.url_join(pre, post) self.assertEqual("http://www.cwi.nl/%7Eguido/FAQ.html", res)