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