def test_path_not_www(self): path = get_path("anarey.info/info/aboutme") self.assertEqual(path, "info/aboutme")
def test_path_url_not_protocol(self): path = get_path("www.anarey.info/un/paseo.html") self.assertEqual(path, "un/paseo.html")
def test_path_not_path(self): path = get_path("www.anarey.info") self.assertEqual(path, "")
def test_path_about(self): path = get_path("http://www.anarey.info/acerca-de") self.assertEqual(path, "acerca-de")
def test_long_path(self): path = get_path("http://www.anarey.info/un/paseo/por") self.assertEqual(path, "un/paseo/por")
def test_path_notequal(self): path = get_path("http://www.anarey.info/index2.html") self.assertNotEqual(path, "index.html")