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

Method test_feed_empty_data

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

Source from the content-addressed store, hash-verified

122 self._basetest_open_connection_error(conn_fut)
123
124 def test_feed_empty_data(self):
125 stream = asyncio.StreamReader(loop=self.loop)
126
127 stream.feed_data(b'')
128 self.assertEqual(b'', stream._buffer)
129
130 def test_feed_nonempty_data(self):
131 stream = asyncio.StreamReader(loop=self.loop)

Callers

nothing calls this directly

Calls 2

feed_dataMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected