Exemplo n.º 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"))
Exemplo n.º 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"))