Exemple #1
0
 def test_combine_url_components_messy(self):
     result = utils.combine_url_components(self.host + '/', "//dir/", "/file//")
     self.assertEqual(self.host + "/dir/file", result)
Exemple #2
0
 def test_combine_url_components_simple(self):
     result = utils.combine_url_components(self.host, "directory")
     self.assertEqual(self.host + "/directory", result)
Exemple #3
0
 def test_combine_url_components_multiple(self):
     result = utils.combine_url_components(self.host, "dir", "file")
     self.assertEqual(self.host + "/dir/file", result)