diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/test_flow_export.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/mitmproxy/test_flow_export.py b/test/mitmproxy/test_flow_export.py index 41089a64..86ff937d 100644 --- a/test/mitmproxy/test_flow_export.py +++ b/test/mitmproxy/test_flow_export.py @@ -117,3 +117,9 @@ class TestIsJson(): headers = Headers(content_type="application/json") j = export.is_json(headers, b'{"name": "example", "email": "example@example.com"}') assert isinstance(j, dict) + + +class TestURL(): + def test_url(self): + flow = tutils.tflow() + assert export.url(flow) == "http://address:22/path" |