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

Function test_simple_binary

tests/test_websocket_parser.py:342–348  ·  view source on GitHub ↗
(
    out: WebSocketDataQueue, parser: PatchableWebSocketReader
)

Source from the content-addressed store, hash-verified

340
341
342def test_simple_binary(
343 out: WebSocketDataQueue, parser: PatchableWebSocketReader
344) -> None:
345 data = build_frame(b"binary", WSMsgType.BINARY)
346 parser._feed_data(data)
347 res = out._buffer[0]
348 assert res == ((WSMsgType.BINARY, b"binary", ""), 6)
349
350
351def test_one_byte_at_a_time(

Callers

nothing calls this directly

Calls 2

build_frameFunction · 0.85
_feed_dataMethod · 0.45

Tested by

no test coverage detected