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

Method test_parse_and_serialize

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

Source from the content-addressed store, hash-verified

408 )
409
410 def test_parse_and_serialize(self):
411 self.assertCloseData(
412 Close(CloseCode.NORMAL_CLOSURE, "OK"),
413 b"\x03\xe8OK",
414 )
415 self.assertCloseData(
416 Close(CloseCode.GOING_AWAY, ""),
417 b"\x03\xe9",
418 )
419
420 def test_parse_empty(self):
421 self.assertEqual(

Callers

nothing calls this directly

Calls 2

assertCloseDataMethod · 0.95
CloseClass · 0.85

Tested by

no test coverage detected