async def METHOD_NAME(self, close: bool):
    with patch(
        "aiogram.client.session.aiohttp.AiohttpSession.close", new_callable=AsyncMock
    ) as mocked_close:
        async with Bot("42:TEST", session=AiohttpSession()).context(auto_close=close) as bot:
            assert isinstance(bot, Bot)
        if close:
            mocked_close.assert_awaited()
        else:
            mocked_close.assert_not_awaited()