示例#1
0
 def test_path_url_not_protocol(self):
     path = get_path("www.anarey.info/un/paseo.html")
     self.assertEqual(path, "un/paseo.html")
示例#2
0
 def test_path_about(self):
     path = get_path("http://www.anarey.info/acerca-de")
     self.assertEqual(path, "acerca-de")
示例#3
0
 def test_long_path(self):
     path = get_path("http://www.anarey.info/un/paseo/por")
     self.assertEqual(path, "un/paseo/por")
示例#4
0
 def test_path_notequal(self):
     path = get_path("http://www.anarey.info/index2.html")
     self.assertNotEqual(path, "index.html")