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

Function test_unknown_frame

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

Source from the content-addressed store, hash-verified

317
318
319def test_unknown_frame(
320 out: WebSocketDataQueue, parser: PatchableWebSocketReader
321) -> None:
322 with pytest.raises(WebSocketError):
323 parser._handle_frame(True, WSMsgType.CONTINUATION, b"", 0)
324
325
326def test_simple_text(out: WebSocketDataQueue, parser: PatchableWebSocketReader) -> None:

Callers

nothing calls this directly

Calls 1

_handle_frameMethod · 0.45

Tested by

no test coverage detected