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

Method assertCloseData

tests/test_frames.py:378–386  ·  view source on GitHub ↗

Serializing close yields data. Parsing data yields close.

(self, close, data)

Source from the content-addressed store, hash-verified

376
377class CloseTests(unittest.TestCase):
378 def assertCloseData(self, close, data):
379 """
380 Serializing close yields data. Parsing data yields close.
381
382 """
383 serialized = close.serialize()
384 self.assertEqual(serialized, data)
385 parsed = Close.parse(data)
386 self.assertEqual(parsed, close)
387
388 def test_str(self):
389 self.assertEqual(

Callers 1

Calls 2

serializeMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected