diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-02-20 11:13:35 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-02-20 11:13:35 +1300 |
commit | 18029df99cc51bf804c08eae1fc91fddcc8bff74 (patch) | |
tree | 2b507598d8c8bb21696c36106c23b4c4051698ff /test/test_flow.py | |
parent | b0f77dfefd13006a4355d137b7ac7840c14eef3d (diff) | |
download | mitmproxy-18029df99cc51bf804c08eae1fc91fddcc8bff74.tar.gz mitmproxy-18029df99cc51bf804c08eae1fc91fddcc8bff74.tar.bz2 mitmproxy-18029df99cc51bf804c08eae1fc91fddcc8bff74.zip |
Use ODict for request.get_form_urlencoded and set_form_urlencoded
Diffstat (limited to 'test/test_flow.py')
-rw-r--r-- | test/test_flow.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_flow.py b/test/test_flow.py index 4cbd5e73..7ca489c6 100644 --- a/test/test_flow.py +++ b/test/test_flow.py @@ -641,11 +641,11 @@ class uRequest(libpry.AutoTree): def test_getset_form_urlencoded(self): h = flow.ODict() h["content-type"] = [flow.HDR_FORM_URLENCODED] - d = [("one", "two"), ("three", "four")] - r = flow.Request(None, "host", 22, "https", "GET", "/", h, utils.urlencode(d)) + d = flow.ODict([("one", "two"), ("three", "four")]) + r = flow.Request(None, "host", 22, "https", "GET", "/", h, utils.urlencode(d.lst)) assert r.get_form_urlencoded() == d - d = [("x", "y")] + d = flow.ODict([("x", "y")]) r.set_form_urlencoded(d) assert r.get_form_urlencoded() == d |