(httpbin_both)
| 54 | |
| 55 | |
| 56 | def test_compress_force_with_negative_ratio(httpbin_both): |
| 57 | r = http( |
| 58 | '--compress', |
| 59 | '--compress', |
| 60 | httpbin_both + '/post', |
| 61 | 'foo=bar', |
| 62 | ) |
| 63 | assert HTTP_OK in r |
| 64 | assert r.json['headers']['Content-Encoding'] == 'deflate' |
| 65 | assert_decompressed_equal(r.json['data'], '{"foo": "bar"}') |
| 66 | |
| 67 | |
| 68 | def test_compress_json(httpbin_both): |
nothing calls this directly
no test coverage detected