MCPcopy
hub / github.com/encode/starlette / test_websocket_str

Function test_websocket_str

tests/test_exceptions.py:166–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164
165
166def test_websocket_str() -> None:
167 assert str(WebSocketException(1008)) == "1008: "
168 assert str(WebSocketException(1008, "Policy Violation")) == "1008: Policy Violation"
169
170
171def test_websocket_repr() -> None:

Callers

nothing calls this directly

Calls 1

WebSocketExceptionClass · 0.90

Tested by

no test coverage detected