@pytest.mark.asyncio
async def test_set_cas_token(self, mocker, redis, redis_connection):
    mocker.spy(redis, '_cas')
    (await redis._set(Keys.KEY, 'value', _cas_token='old_value', _conn=redis_connection))
    redis._cas.assert_called_with(Keys.KEY, 'value', 'old_value', ttl=None, _conn=redis_connection)
@pytest.mark.asyncio
async def test_set_cas_token(self, mocker, redis, redis_connection):
    mocker.spy(redis, '_cas')
    (await redis._set(Keys.KEY, 'value', _cas_token='old_value', _conn=redis_connection))
    redis._cas.assert_called_with(Keys.KEY, 'value', 'old_value', ttl=None, _conn=redis_connection)