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

Method test_feed_nonempty_data

tests/test_streams.py:79–85  ·  tests/test_streams.py::TestStreamReader.test_feed_nonempty_data
(self)

Source from the content-addressed store, hash-verified

77 self.assertEqual(b&class="cm">#x27;', data)
78
79 def test_feed_nonempty_data(self):
80 stream = self._make_one()
81 stream.feed_data(self.DATA)
82 stream.feed_eof()
83
84 data = self.loop.run_until_complete(stream.read())
85 self.assertEqual(self.DATA, data)
86
87 def test_read_zero(self):
88 class="cm"># Read zero bytes.

Callers

nothing calls this directly

Calls 4

_make_oneMethod · 0.95
feed_dataMethod · 0.45
feed_eofMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected