()
| 282 | |
| 283 | |
| 284 | def test_http_connect_error(): |
| 285 | sio = io.StringIO() |
| 286 | d = dumper.Dumper(sio) |
| 287 | with taddons.context(d) as ctx: |
| 288 | ctx.configure(d, flow_detail=1) |
| 289 | f = tflow.tflow(resp=tutils.tresp(status_code=502, reason=b"Bad Gateway")) |
| 290 | d.http_connect_error(f) |
| 291 | assert sio.getvalue() |
| 292 | assert "502" in sio.getvalue() |
| 293 | sio.truncate(0) |
| 294 | |
| 295 | ctx.configure(d, flow_detail=0) |
| 296 | d.http_connect_error(f) |
| 297 | assert not sio.getvalue() |
| 298 | |
| 299 | |
| 300 | def test_http2(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…