Beispiel #1
0
    def _get_complete_url(self, base_url, page_url_short):
        """Returns the absolute URL by joining the base_url and page_url_short.

        Args:
            base_url: str. The base URL.
            page_url_short: str. The relative page URL to be joined to base_url.

        Returns:
            str. The resulting joined URL.
        """
        return python_utils.url_join(base_url, page_url_short)
Beispiel #2
0
 def test_url_join(self):
     response = python_utils.url_join(
         'http://www.cwi.nl/%7Eguido/Python.html', 'FAQ.html')
     self.assertEqual(response, 'http://www.cwi.nl/%7Eguido/FAQ.html')