Esempio n. 1
0
 def test_split(self):
     # Test url path
     path = "https://algorithms/unix/test.py"
     expect_result = split(path)
     self.assertEqual("https://algorithms/unix", expect_result[0])
     self.assertEqual("test.py", expect_result[1])
     # Test file path
     path = "algorithms/unix/test.py"
     expect_result = split(path)
     self.assertEqual("algorithms/unix", expect_result[0])
     self.assertEqual("test.py", expect_result[1])
Esempio n. 2
0
 def test_split(self):
     # Test url path
     path = "https://algorithms/unix/test.py"
     expect_result = split(path)
     self.assertEqual("https://algorithms/unix", expect_result[0])
     self.assertEqual("test.py", expect_result[1])
     # Test file path
     path = "algorithms/unix/test.py"
     expect_result = split(path)
     self.assertEqual("algorithms/unix", expect_result[0])
     self.assertEqual("test.py", expect_result[1])