@pytest.mark.asyncio
async def test_set(self, redis, redis_connection):
    (await redis._set(Keys.KEY, 'value'))
    redis_connection.set.assert_called_with(Keys.KEY, 'value')
    (await redis._set(Keys.KEY, 'value', ttl=1))
    redis_connection.setex.assert_called_with(Keys.KEY, 1, 'value')
@pytest.mark.asyncio
async def test_set(self, redis, redis_connection):
    (await redis._set(Keys.KEY, 'value'))
    redis_connection.set.assert_called_with(Keys.KEY, 'value')
    (await redis._set(Keys.KEY, 'value', ttl=1))
    redis_connection.setex.assert_called_with(Keys.KEY, 1, 'value')