Ejemplo n.º 1
0
 def test_urldecode(self):
     # Assert URL decode (inverse of urllib.urlencode).
     v = web.urldecode("?user=me&page=1&q=&")
     self.assertEqual(v, {"user": "******", "page": 1, "q": None})
     print "pattern.web.urldecode()"
Ejemplo n.º 2
0
 def test_urldecode(self):
     # Assert URL decode (inverse of urllib.urlencode).
     v = web.urldecode("?user=me&page=1&q=&")
     self.assertEqual(v, {"user": "******", "page": 1, "q": None})
     print "pattern.web.urldecode()"