MCPcopy Create free account
hub / github.com/microsoft/debugpy / test_write

Method test_write

tests/debugpy/common/test_messaging.py:119–124  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

117 assert exc_info.value.stream is stream
118
119 def test_write(self):
120 messages = []
121 stream = JsonMemoryStream([], messages)
122 for message in self.MESSAGES:
123 stream.write_json(message)
124 assert messages == self.MESSAGES
125
126
127class MessageHandlerRecorder(list):

Callers

nothing calls this directly

Calls 2

write_jsonMethod · 0.95
JsonMemoryStreamClass · 0.85

Tested by

no test coverage detected