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))
def test_canonicalUrl_should_return_none(self): """ When None is passed in None should be returned :return: """ self.assertEqual(None, go.canonicalUrl(None))