@pytest.mark.asyncio
async def test_cas_float_ttl(self, mocker, redis, redis_connection):
    mocker.spy(redis, '_raw')
    (await redis._cas(Keys.KEY, 'value', 'old_value', ttl=0.1, _conn=redis_connection))
    redis._raw.assert_called_with('eval', redis.CAS_SCRIPT, [Keys.KEY], ['value', 'old_value', 'PX', 100], _conn=redis_connection)
@pytest.mark.asyncio
async def test_cas_float_ttl(self, mocker, redis, redis_connection):
    mocker.spy(redis, '_raw')
    (await redis._cas(Keys.KEY, 'value', 'old_value', ttl=0.1, _conn=redis_connection))
    redis._raw.assert_called_with('eval', redis.CAS_SCRIPT, [Keys.KEY], ['value', 'old_value', 'PX', 100], _conn=redis_connection)