예제 #1
0
 def test_path_not_www(self):
     path = get_path("anarey.info/info/aboutme")
     self.assertEqual(path, "info/aboutme")
예제 #2
0
 def test_path_url_not_protocol(self):
     path = get_path("www.anarey.info/un/paseo.html")
     self.assertEqual(path, "un/paseo.html")
예제 #3
0
 def test_path_not_path(self):
     path = get_path("www.anarey.info")
     self.assertEqual(path, "")
예제 #4
0
 def test_path_about(self):
     path = get_path("http://www.anarey.info/acerca-de")
     self.assertEqual(path, "acerca-de")
예제 #5
0
 def test_long_path(self):
     path = get_path("http://www.anarey.info/un/paseo/por")
     self.assertEqual(path, "un/paseo/por")
예제 #6
0
 def test_path_not_www(self):
     path = get_path("anarey.info/info/aboutme")
     self.assertEqual(path, "info/aboutme")
예제 #7
0
 def test_path_notequal(self):
     path = get_path("http://www.anarey.info/index2.html")
     self.assertNotEqual(path, "index.html")
예제 #8
0
 def test_path_not_path(self):
     path = get_path("www.anarey.info")
     self.assertEqual(path, "")
예제 #9
0
 def test_path_url_not_protocol(self):
     path = get_path("www.anarey.info/un/paseo.html")
     self.assertEqual(path, "un/paseo.html")
예제 #10
0
 def test_long_path(self):
     path = get_path("http://www.anarey.info/un/paseo/por")
     self.assertEqual(path, "un/paseo/por")
예제 #11
0
 def test_path_about(self):
     path = get_path("http://www.anarey.info/acerca-de")
     self.assertEqual(path, "acerca-de")
예제 #12
0
 def test_path_notequal(self):
     path = get_path("http://www.anarey.info/index2.html")
     self.assertNotEqual(path, "index.html")