Testing urlparse.urljoin creates more issues than it solves. As we are constructing the url and not going from url to url (ie, http://site.com/foo/bar.html to http://site.com/foo/dog.html), urljoin doesn't gain anything here.