MCPcopy
hub / github.com/bugsink/bugsink / test_max_data_reader_none_ok

Method test_max_data_reader_none_ok

bugsink/tests.py:140–144  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

138 self.assertEqual("Max length (250) exceeded", str(e.exception))
139
140 def test_max_data_reader_none_ok(self):
141 stream = io.BytesIO(b"hello" * 10)
142 reader = MaxDataReader(250, stream)
143
144 self.assertEqual(b"hello" * 10, reader.read(None))
145
146 def test_max_data_reader_none_fail(self):
147 stream = io.BytesIO(b"hello" * 100)

Callers

nothing calls this directly

Calls 2

readMethod · 0.95
MaxDataReaderClass · 0.85

Tested by

no test coverage detected