diff --git a/README.md b/README.md index 652f3d0..0cb07d3 100644 --- a/README.md +++ b/README.md @@ -172,7 +172,7 @@ async def test_stuff(): with mock.patch('aiofiles.threadpool.sync_open', return_value=mock_file_stream) as mock_open: async with aiofiles.open('filename', 'w') as f: await f.write(write_data) - assert f.read() == b'file chunks 1' + assert await f.read() == b'file chunks 1' mock_file_stream.write.assert_called_once_with(write_data) ```