MCPcopy
hub / github.com/aio-libs/aiohttp / test_read

Method test_read

tests/test_multipart.py:151–156  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

149 self.assertIsNone(result)
150
151 def test_read(self):
152 obj = aiohttp.multipart.BodyPartReader(
153 self.boundary, {}, Stream(b'Hello, world!\r\n--:'))
154 result = yield from obj.read()
155 self.assertEqual(b'Hello, world!', result)
156 self.assertTrue(obj.at_eof())
157
158 def test_read_chunk_at_eof(self):
159 obj = aiohttp.multipart.BodyPartReader(

Callers

nothing calls this directly

Calls 3

readMethod · 0.95
at_eofMethod · 0.95
StreamClass · 0.70

Tested by

no test coverage detected