MCPcopy Index your code
hub / github.com/python-websockets/websockets / test_parse_errors

Method test_parse_errors

tests/test_frames.py:426–432  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

424 )
425
426 def test_parse_errors(self):
427 with self.assertRaises(ProtocolError):
428 Close.parse(b"\x03")
429 with self.assertRaises(ProtocolError):
430 Close.parse(b"\x03\xe7")
431 with self.assertRaises(UnicodeDecodeError):
432 Close.parse(b"\x03\xe8\xff\xff")
433
434 def test_serialize_errors(self):
435 with self.assertRaises(ProtocolError):

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected