mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +00:00
Repair unit test to match removal of arg from Response class.
This commit is contained in:
parent
89627a702a
commit
6339f521fc
@ -247,7 +247,7 @@ class uResponse(libpry.AutoTree):
|
|||||||
c = proxy.ClientConnection(("addr", 2222))
|
c = proxy.ClientConnection(("addr", 2222))
|
||||||
r = proxy.Request(c, "host", 22, "https", "GET", "/", h, "content")
|
r = proxy.Request(c, "host", 22, "https", "GET", "/", h, "content")
|
||||||
req = proxy.Request(c, "host", 22, "https", "GET", "/", h, "content")
|
req = proxy.Request(c, "host", 22, "https", "GET", "/", h, "content")
|
||||||
resp = proxy.Response(req, 200, "HTTP", "msg", h.copy(), "content")
|
resp = proxy.Response(req, 200, "msg", h.copy(), "content")
|
||||||
|
|
||||||
state = resp.get_state()
|
state = resp.get_state()
|
||||||
assert proxy.Response.from_state(req, state) == resp
|
assert proxy.Response.from_state(req, state) == resp
|
||||||
|
Loading…
Reference in New Issue
Block a user