def testConstructEndPoint(self): self.assertEqual(Util.constructEndPoint('protocol://address:1234/path'), 'protocol://address:1234/path') self.assertEqual(Util.constructEndPoint('address', 'protocol', '1234', 'path'), 'protocol://address:1234/path')