MCPcopy Index your code
hub / github.com/python/cpython / test_feed_nonempty_data

Method test_feed_nonempty_data

Lib/test/test_asyncio/test_streams.py:130–134  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

128 self.assertEqual(b'', stream._buffer)
129
130 def test_feed_nonempty_data(self):
131 stream = asyncio.StreamReader(loop=self.loop)
132
133 stream.feed_data(self.DATA)
134 self.assertEqual(self.DATA, stream._buffer)
135
136 def test_read_zero(self):
137 # Read zero bytes.

Callers

nothing calls this directly

Calls 2

feed_dataMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected