Beispiel #1
0
    def test_canonicalUrl_should_return_correct_url(self):
        url = "https://www.google.com"
        self.assertEqual(url, go.canonicalUrl(url))

        # Validates that jinja2.utils.urlize works the way we expect
        url = "(https://www.google.com....."
        self.assertEqual("https://www.google.com", go.canonicalUrl(url))
Beispiel #2
0
    def test_canonicalUrl_should_return_correct_url(self):
        url = "https://www.google.com"
        self.assertEqual(url, go.canonicalUrl(url))

        # Validates that jinja2.utils.urlize works the way we expect
        url = "(https://www.google.com....."
        self.assertEqual("https://www.google.com", go.canonicalUrl(url))
Beispiel #3
0
 def test_canonicalUrl_should_return_none(self):
     """
     When None is passed in None should be returned
     :return:
     """
     self.assertEqual(None, go.canonicalUrl(None))
Beispiel #4
0
 def test_canonicalUrl_should_return_none(self):
     """
     When None is passed in None should be returned
     :return:
     """
     self.assertEqual(None, go.canonicalUrl(None))