diff options
| author | Shadab Zafar <dufferzafar0@gmail.com> | 2016-07-16 17:43:42 +0530 |
|---|---|---|
| committer | Shadab Zafar <dufferzafar0@gmail.com> | 2016-07-20 10:03:00 +0530 |
| commit | 8f4d49e22aa401760c87d00ba9355e6abc6b3251 (patch) | |
| tree | c4669d84aee4dffddc98be2456ca7de363418bf4 /test | |
| parent | 3ae28f1c310bdb9e9b8cfa69d98c0e2b67db183b (diff) | |
| download | mitmproxy-8f4d49e22aa401760c87d00ba9355e6abc6b3251.tar.gz mitmproxy-8f4d49e22aa401760c87d00ba9355e6abc6b3251.tar.bz2 mitmproxy-8f4d49e22aa401760c87d00ba9355e6abc6b3251.zip | |
Remove raw_request exporter
This functionality will be handled by headers+content
Diffstat (limited to 'test')
| -rw-r--r-- | test/mitmproxy/test_flow_export.py | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/test/mitmproxy/test_flow_export.py b/test/mitmproxy/test_flow_export.py index e6d65e40..41089a64 100644 --- a/test/mitmproxy/test_flow_export.py +++ b/test/mitmproxy/test_flow_export.py @@ -1,4 +1,3 @@ -from textwrap import dedent import re import netlib.tutils @@ -70,41 +69,6 @@ class TestExportPythonCode(): python_equals("data/test_flow_export/python_patch.py", export.python_code(flow)) -class TestRawRequest(): - def test_get(self): - flow = tutils.tflow(req=req_get()) - result = dedent(""" - GET /path?a=foo&a=bar&b=baz HTTP/1.1\r - header: qvalue\r - content-length: 7\r - host: address:22\r - \r - """).strip(" ").lstrip() - assert export.raw_request(flow) == result - - def test_post(self): - flow = tutils.tflow(req=req_post()) - result = dedent(""" - POST /path HTTP/1.1\r - host: address:22\r - \r - content - """).strip() - assert export.raw_request(flow) == result - - def test_patch(self): - flow = tutils.tflow(req=req_patch()) - result = dedent(""" - PATCH /path?query=param HTTP/1.1\r - header: qvalue\r - content-length: 7\r - host: address:22\r - \r - content - """).strip() - assert export.raw_request(flow) == result - - class TestExportLocustCode(): def test_get(self): flow = tutils.tflow(req=req_get()) |
