def req(self): conn = flow.ClientConnect(("one", 2222)) headers = flow.ODictCaseless() headers["header"] = ["qvalue"] req = flow.Request(conn, (1, 1), "host", 80, "http", "GET", "/path", headers, "content_request") return flow.Flow(req)
def tflow_err(): r = treq() f = flow.Flow(r) f.error = flow.Error(r, "error") f.error.reply = controller.DummyReply() return f
def tflow_full(): r = treq() f = flow.Flow(r) f.response = tresp(r) return f
def tflow(): r = treq() return flow.Flow(r)
def test_serialization(self): f = flow.Flow(None) f.request = tutils.treq()
def tflow_err(): r = treq() f = flow.Flow(r) f.error = flow.Error(r, "error") return f