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

Method test_write

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

Source from the content-addressed store, hash-verified

93 assert exc_info.value.stream is stream
94
95 def test_write(self):
96 data = io.BytesIO()
97 stream = messaging.JsonIOStream(data, data, "data")
98 for message in self.MESSAGES:
99 stream.write_json(message)
100 data = data.getvalue()
101 assert data == self.SERIALIZED_MESSAGES
102
103
104class TestJsonMemoryStream(object):

Callers

nothing calls this directly

Calls 2

write_jsonMethod · 0.95
getvalueMethod · 0.80

Tested by

no test coverage detected