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

Function assert_readline

tests/test_http.py:28–30  ·  view source on GitHub ↗
(payload, size, expected)

Source from the content-addressed store, hash-verified

26
27
28def assert_readline(payload, size, expected):
29 body = Body(io.BytesIO(payload))
30 assert body.readline(size) == expected
31
32
33def test_readline_empty_body():

Callers 2

test_readline_empty_bodyFunction · 0.85
test_readline_zero_sizeFunction · 0.85

Calls 2

readlineMethod · 0.95
BodyClass · 0.90

Tested by

no test coverage detected