diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2011-08-04 09:26:26 +1200 |
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2011-08-04 09:26:26 +1200 |
| commit | 7a3b871b330692021452221e60310ee7fee99ce3 (patch) | |
| tree | 4d851f97daf4105fed226b8f2dbbcfb0b2e4646e /test | |
| parent | 0760607a7dd1ab6b904f618ecdda170cd042a21b (diff) | |
| download | mitmproxy-7a3b871b330692021452221e60310ee7fee99ce3.tar.gz mitmproxy-7a3b871b330692021452221e60310ee7fee99ce3.tar.bz2 mitmproxy-7a3b871b330692021452221e60310ee7fee99ce3.zip | |
Request class now has a clean pydoc profile.
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_console.py | 4 | ||||
| -rw-r--r-- | test/test_dump.py | 2 | ||||
| -rw-r--r-- | test/test_flow.py | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/test/test_console.py b/test/test_console.py index f76b086f..a935c146 100644 --- a/test/test_console.py +++ b/test/test_console.py @@ -103,8 +103,8 @@ class uformat_flow(libpry.AutoTree): f.request = f.response.request f.backup() - f.request.set_replay() - f.response.set_replay() + f.request._set_replay() + f.response._set_replay() assert ('method', '[replay]') in console.format_flow(f, True) assert ('method', '[replay]') in console.format_flow(f, True, True) diff --git a/test/test_dump.py b/test/test_dump.py index 247ab15b..808b3a7e 100644 --- a/test/test_dump.py +++ b/test/test_dump.py @@ -7,7 +7,7 @@ import tutils class uStrFuncs(libpry.AutoTree): def test_all(self): t = tutils.tresp() - t.set_replay() + t._set_replay() dump.str_response(t) t = tutils.treq() diff --git a/test/test_flow.py b/test/test_flow.py index 4c4f7bf8..fa49aecd 100644 --- a/test/test_flow.py +++ b/test/test_flow.py @@ -571,10 +571,10 @@ class uRequest(libpry.AutoTree): h["test"] = ["test"] c = flow.ClientConnect(("addr", 2222)) r = flow.Request(c, "host", 22, "https", "GET", "/", h, "content") - u = r.url() + u = r.get_url() assert r.set_url(u) assert not r.set_url("") - assert r.url() == u + assert r.get_url() == u assert r._assemble() r2 = r.copy() |
