コード例 #1
0
ファイル: test_parseurl.py プロジェクト: juanje/katas
 def test_path_url_not_protocol(self):
     path = get_path("www.anarey.info/un/paseo.html")
     self.assertEqual(path, "un/paseo.html")
コード例 #2
0
ファイル: test_parseurl.py プロジェクト: juanje/katas
 def test_path_about(self):
     path = get_path("http://www.anarey.info/acerca-de")
     self.assertEqual(path, "acerca-de")
コード例 #3
0
ファイル: test_parseurl.py プロジェクト: juanje/katas
 def test_long_path(self):
     path = get_path("http://www.anarey.info/un/paseo/por")
     self.assertEqual(path, "un/paseo/por")
コード例 #4
0
ファイル: test_parseurl.py プロジェクト: juanje/katas
 def test_path_notequal(self):
     path = get_path("http://www.anarey.info/index2.html")
     self.assertNotEqual(path, "index.html")