(httpbin_both)
| 66 | |
| 67 | |
| 68 | def test_compress_json(httpbin_both): |
| 69 | r = http( |
| 70 | '--compress', |
| 71 | '--compress', |
| 72 | httpbin_both + '/post', |
| 73 | 'foo=bar', |
| 74 | ) |
| 75 | assert HTTP_OK in r |
| 76 | assert r.json['headers']['Content-Encoding'] == 'deflate' |
| 77 | assert_decompressed_equal(r.json['data'], '{"foo": "bar"}') |
| 78 | assert r.json['json'] is None |
| 79 | |
| 80 | |
| 81 | def test_compress_form(httpbin_both): |
nothing calls this directly
no test coverage detected