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

Method test_read_text

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

Source from the content-addressed store, hash-verified

352 yield from obj.read(decode=True)
353
354 def test_read_text(self):
355 obj = aiohttp.multipart.BodyPartReader(
356 self.boundary, {}, Stream(b'Hello, world!\r\n--:--'))
357 result = yield from obj.text()
358 self.assertEqual('Hello, world!', result)
359
360 def test_read_text_encoding(self):
361 obj = aiohttp.multipart.BodyPartReader(

Callers

nothing calls this directly

Calls 2

textMethod · 0.95
StreamClass · 0.70

Tested by

no test coverage detected