Repair unit test to match removal of arg from Response class.

This commit is contained in:
Aldo Cortesi 2011-02-16 11:20:00 +13:00
parent 89627a702a
commit 6339f521fc

View File

@ -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