aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorShadab Zafar <dufferzafar0@gmail.com>2016-06-28 17:41:30 +0530
committerShadab Zafar <dufferzafar0@gmail.com>2016-07-02 21:15:20 +0530
commitf623b3d99b46f9cdeabdbea31614270cc1832f3b (patch)
treeb6971d387f7284de9aa5896c342fd6c14e014a6f /test
parent17b727321f659ce66d57269285c0a021db144e71 (diff)
downloadmitmproxy-f623b3d99b46f9cdeabdbea31614270cc1832f3b.tar.gz
mitmproxy-f623b3d99b46f9cdeabdbea31614270cc1832f3b.tar.bz2
mitmproxy-f623b3d99b46f9cdeabdbea31614270cc1832f3b.zip
py3++: test_flow_export
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/data/test_flow_export/python_post_json.py4
-rw-r--r--test/mitmproxy/test_flow_export.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/test/mitmproxy/data/test_flow_export/python_post_json.py b/test/mitmproxy/data/test_flow_export/python_post_json.py
index 6c1b9740..5ef110f3 100644
--- a/test/mitmproxy/data/test_flow_export/python_post_json.py
+++ b/test/mitmproxy/data/test_flow_export/python_post_json.py
@@ -8,8 +8,8 @@ headers = {
json = {
- u'email': u'example@example.com',
- u'name': u'example',
+ 'email': 'example@example.com',
+ 'name': 'example',
}
diff --git a/test/mitmproxy/test_flow_export.py b/test/mitmproxy/test_flow_export.py
index 9a263b1b..33c5137a 100644
--- a/test/mitmproxy/test_flow_export.py
+++ b/test/mitmproxy/test_flow_export.py
@@ -21,15 +21,15 @@ def python_equals(testdata, text):
def req_get():
- return netlib.tutils.treq(method='GET', content='', path=b"/path?a=foo&a=bar&b=baz")
+ return netlib.tutils.treq(method=b'GET', content=b'', path=b"/path?a=foo&a=bar&b=baz")
def req_post():
- return netlib.tutils.treq(method='POST', headers=())
+ return netlib.tutils.treq(method=b'POST', headers=())
def req_patch():
- return netlib.tutils.treq(method='PATCH', path=b"/path?query=param")
+ return netlib.tutils.treq(method=b'PATCH', path=b"/path?query=param")
class TestExportCurlCommand():