예제 #1
0
 def test_join_with_slash(self):
     self.assertEqual("path/to/dir/file",
                      join_with_slash("path/to/dir/", "file"))
     self.assertEqual("path/to/dir/file",
                      join_with_slash("path/to/dir", "file"))
     self.assertEqual("http://algorithms/part",
                      join_with_slash("http://algorithms", "part"))
     self.assertEqual("http://algorithms/part",
                      join_with_slash("http://algorithms/", "part"))
예제 #2
0
 def test_join_with_slash(self):
     self.assertEqual("path/to/dir/file", join_with_slash("path/to/dir/", "file"))
     self.assertEqual("path/to/dir/file", join_with_slash("path/to/dir", "file"))
     self.assertEqual("http://algorithms/part", join_with_slash("http://algorithms", "part"))
     self.assertEqual("http://algorithms/part", join_with_slash("http://algorithms/", "part"))