async def test_pttl_no_key(self, r: aioredis.Redis):
        """PTTL on servers 2.8 and after return -2 when the key doesn't exist"""
        assert await r.pttl("a") == -2
PTTL on servers 2.8 and after return -2 when the key doesn't exist
tests/test_commands.py