Exemplo n.º 1
0
    def decode_post_data(self, post_data):
        result = {}
        for item in post_data.split('&'):
            key, _sep, value = item.partition('=')
            result[key] = jsonutils.loads(urlutils.unquote_plus(value))

        return result
Exemplo n.º 2
0
 def test_unquote_plus(self):
     fake = "%7e/abc+def"
     result = urlutils.unquote_plus(fake)
     self.assertEqual(result, '~/abc def')