MCPcopy Create free account
hub / github.com/aio-libs/aiohttp / test_parse_frame_length4

Function test_parse_frame_length4

tests/test_websocket_parser.py:207–212  ·  view source on GitHub ↗
(parser: PatchableWebSocketReader)

Source from the content-addressed store, hash-verified

205
206
207def test_parse_frame_length4(parser: PatchableWebSocketReader) -> None:
208 parser.parse_frame(struct.pack("!BB", 0b00000001, 127))
209 parser.parse_frame(struct.pack("!Q", 4))
210 fin, opcode, payload, compress = parser.parse_frame(b"1234")[0]
211
212 assert (0, 1, b"1234", 0) == (fin, opcode, payload, compress)
213
214
215def test_parse_frame_mask(parser: PatchableWebSocketReader) -> None:

Callers

nothing calls this directly

Calls 1

parse_frameMethod · 0.80

Tested by

no test coverage detected