From 94ae720a220da4beaa2fc6111b4cafb60b41d33b Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 15 Jul 2011 16:16:43 +1200 Subject: Add a pretty-printing mode for urlencoded form data. --- test/test_utils.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/test_utils.py') diff --git a/test/test_utils.py b/test/test_utils.py index d5957872..2b0f4342 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -221,6 +221,12 @@ class upretty_json(libpry.AutoTree): assert not utils.pretty_json("moo") +class u_urldecode(libpry.AutoTree): + def test_one(self): + s = "one=two&three=four" + assert len(utils.urldecode(s)) == 2 + + class udummy_ca(libpry.AutoTree): def test_all(self): d = self.tmpdir() @@ -306,6 +312,7 @@ tests = [ uData(), upretty_xmlish(), upretty_json(), + u_urldecode(), udummy_ca(), udummy_cert(), uLRUCache(), -- cgit v1.2.3