def testBasicPlus(self): inpu, inpp = "http://www.com", {'msg': 'foo bar'} exp = "http://www.com?msg=foo+bar" self.assertEqual(Utils.AddParam2URL(inpu, inpp, plus_quote=1), exp)
def testBasic(self): inpu, inpp = "http://www.com", {'msg': 'foo bar'} exp = "http://www.com?msg=foo%20bar" self.assertEqual(Utils.AddParam2URL(inpu, inpp), exp)