diff options
| author | Maximilian Hils <git@maximilianhils.com> | 2016-07-05 15:17:18 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-05 15:17:18 -0700 |
| commit | 00a35aa8954080d7c9d1800625805f0476498896 (patch) | |
| tree | fc1840e2e6234265b7059e3d87ef3d9be2a28180 /test | |
| parent | 317a5178ea8f6f060e95094e92e3c996294c8a09 (diff) | |
| parent | f623b3d99b46f9cdeabdbea31614270cc1832f3b (diff) | |
| download | mitmproxy-00a35aa8954080d7c9d1800625805f0476498896.tar.gz mitmproxy-00a35aa8954080d7c9d1800625805f0476498896.tar.bz2 mitmproxy-00a35aa8954080d7c9d1800625805f0476498896.zip | |
Merge pull request #1297 from dufferzafar/py3-flow-export
Python 3 - test_flow_export
Diffstat (limited to 'test')
| -rw-r--r-- | test/mitmproxy/data/test_flow_export/python_post_json.py | 4 | ||||
| -rw-r--r-- | test/mitmproxy/test_flow_export.py | 6 |
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(): |
