MCPcopy Create free account
hub / github.com/python-websockets/websockets / test_serialize

Method test_serialize

tests/test_datastructures.py:82–86  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

80 self.assertEqual(repr(self.headers.copy()), repr(self.headers))
81
82 def test_serialize(self):
83 self.assertEqual(
84 self.headers.serialize(),
85 b"Connection: Upgrade\r\nServer: websockets\r\n\r\n",
86 )
87
88 def test_contains(self):
89 self.assertIn("Server", self.headers)

Callers

nothing calls this directly

Calls 1

serializeMethod · 0.45

Tested by

no test coverage detected