def test_all(self): t = tutils.tresp() t._set_replay() dump.str_response(t) t = tutils.treq() t.client_conn = None t.stickycookie = True assert "stickycookie" in dump.str_request(t) assert "replay" in dump.str_request(t)
def test_strfuncs(): t = tutils.tresp() t._set_replay() dump.str_response(t) t = tutils.treq() t.client_conn = None t.stickycookie = True assert "stickycookie" in dump.str_request(t) assert "replay" in dump.str_request(t)
def test_strfuncs(): t = tutils.tresp() t.is_replay = True dump.str_response(t) t = tutils.treq() t.flow.client_conn = None t.stickycookie = True assert "stickycookie" in dump.str_request(t, False) assert "stickycookie" in dump.str_request(t, True) assert "replay" in dump.str_request(t, False) assert "replay" in dump.str_request(t, True)
def test_strfuncs(): t = tutils.tresp() t.is_replay = True dump.str_response(t) f = tutils.tflow() f.client_conn = None f.request.stickycookie = True assert "stickycookie" in dump.str_request(f, False) assert "stickycookie" in dump.str_request(f, True) assert "replay" in dump.str_request(f, False) assert "replay" in dump.str_request(f, True)
def test_strfuncs(): t = HTTPResponse.wrap(netlib.tutils.tresp()) t.is_replay = True dump.str_response(t) f = tutils.tflow() f.client_conn = None f.request.stickycookie = True assert "stickycookie" in dump.str_request(f, False) assert "stickycookie" in dump.str_request(f, True) assert "replay" in dump.str_request(f, False) assert "replay" in dump.str_request(f, True)
def test_strfuncs(): t = http_wrappers.HTTPResponse.wrap(netlib.tutils.tresp()) t.is_replay = True dump.str_response(t) f = tutils.tflow() f.client_conn = None f.request.stickycookie = True assert "stickycookie" in dump.str_request(f, False) assert "stickycookie" in dump.str_request(f, True) assert "replay" in dump.str_request(f, False) assert "replay" in dump.str_request(f, True)