MCPcopy
hub / github.com/benoitc/gunicorn / test_close

Method test_close

tests/test_http2_request.py:103–108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

101 assert len(body) == 5
102
103 def test_close(self):
104 body = HTTP2Body(b"test")
105 body.close()
106 # Should not raise
107 with pytest.raises(ValueError):
108 body.read()
109
110
111class TestHTTP2BodyReadStrategies:

Callers

nothing calls this directly

Calls 3

closeMethod · 0.95
readMethod · 0.95
HTTP2BodyClass · 0.90

Tested by

no test coverage detected