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

Method side_effect

tests/test_client_response.py:73–76  ·  tests/test_client_response.py::TestClientResponse.side_effect
(*args, **kwargs)

Source from the content-addressed store, hash-verified

71
72 def test_read_and_release_connection(self):
73 def side_effect(*args, **kwargs):
74 fut = asyncio.Future(loop=self.loop)
75 fut.set_result(b&class="cm">#x27;payload')
76 return fut
77 content = self.response.content = unittest.mock.Mock()
78 content.read.side_effect = side_effect
79

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected