Esempio n. 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)
Esempio n. 2
0
 def test_combine_url_components_simple(self):
     result = utils.combine_url_components(self.host, "directory")
     self.assertEqual(self.host + "/directory", result)
Esempio n. 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)