@pytest.mark.asyncio
async def test_close_when_not_connected(self, redis, redis_pool):
    redis._pool = None
    (await redis._close())
    assert (redis_pool.clear.call_count == 0)
@pytest.mark.asyncio
async def test_close_when_not_connected(self, redis, redis_pool):
    redis._pool = None
    (await redis._close())
    assert (redis_pool.clear.call_count == 0)