diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-09-03 23:44:54 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-09-03 23:44:54 +0200 |
commit | 2f44b26b4cd014e03dd62a125d79af9b81663a93 (patch) | |
tree | 732a02fe5d0283ccd98513bfaa2c8d65bb81dd54 /test/test_protocol_http.py | |
parent | cd43c5ba9c2981aeffee354cbcb574b6f5e435ba (diff) | |
download | mitmproxy-2f44b26b4cd014e03dd62a125d79af9b81663a93.tar.gz mitmproxy-2f44b26b4cd014e03dd62a125d79af9b81663a93.tar.bz2 mitmproxy-2f44b26b4cd014e03dd62a125d79af9b81663a93.zip |
improve HTTPRequest syntax
Diffstat (limited to 'test/test_protocol_http.py')
-rw-r--r-- | test/test_protocol_http.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_protocol_http.py b/test/test_protocol_http.py index c2ff7b44..c76fa192 100644 --- a/test/test_protocol_http.py +++ b/test/test_protocol_http.py @@ -58,12 +58,12 @@ class TestHTTPRequest: tutils.raises("Invalid request form", r._assemble, "antiauthority") def test_set_url(self): - f = tutils.tflow(req=tutils.treq_absolute()) - f.request.set_url("https://otheraddress:42/ORLY", f) - assert f.request.scheme == "https" - assert f.request.host == "otheraddress" - assert f.request.port == 42 - assert f.request.path == "/ORLY" + r = tutils.treq_absolute() + r.url = "https://otheraddress:42/ORLY" + assert r.scheme == "https" + assert r.host == "otheraddress" + assert r.port == 42 + assert r.path == "/ORLY" class TestHTTPResponse: |