Lines Matching refs:resp
18 resp = client.post(
28 assert resp['status'] == 200, 'status'
29 headers = resp['headers']
59 assert resp['body'] == body, 'body'
65 resp = client.get(url='/?var1=val1&var2=val2')
68 resp['headers']['Query-String'] == 'var1=val1&var2=val2'
75 resp = client.get(url='/?')
77 assert resp['status'] == 200, 'query string empty status'
78 assert resp['headers']['Query-String'] == '', 'query string empty'
84 resp = client.get()
86 assert resp['status'] == 200, 'query string absent status'
87 assert resp['headers']['Query-String'] == '', 'query string absent'
267 resp = client.get()
268 assert resp['status'] == 200, 'status'
270 enc_default = re.sub(r'[-_]', '', resp['headers']['X-Enc']).upper()
286 resp = client.post(body="\ntc=one,two\ntc=three,four,\n\n")
288 assert resp['headers']['Custom-Header'] == [
396 (resp, sock) = client.post(
406 assert resp['body'] == body, 'keep-alive 1'
409 resp = client.post(sock=sock, body=body)
411 assert resp['body'] == body, 'keep-alive 2'
417 resp = client.get()
419 assert resp['status'] == 200, 'status'
421 headers = resp['headers']
457 resp = client.recvall(sock).decode('utf-8')
459 client.log_in(resp)
461 resp = client._resp_to_dict(resp)
463 assert resp['status'] == 200, 'status'
465 threads.add(resp['headers']['X-Thread'])
467 assert resp['headers']['Rack-Multithread'] == 'true', 'multithread'