@pytest.mark.asyncio
async def test_multi_set_with_ttl(self, redis, redis_connection):
    (await redis._multi_set([(Keys.KEY, 'value'), (Keys.KEY_1, 'random')], ttl=1))
    assert (redis_connection.multi_exec.call_count == 1)
    redis_connection.mset.assert_called_with(Keys.KEY, 'value', Keys.KEY_1, 'random')
    redis_connection.expire.assert_any_call(Keys.KEY, timeout=1)
    redis_connection.expire.assert_any_call(Keys.KEY_1, timeout=1)
    assert (redis_connection.execute.call_count == 1)
@pytest.mark.asyncio
async def test_multi_set_with_ttl(self, redis, redis_connection):
    (await redis._multi_set([(Keys.KEY, 'value'), (Keys.KEY_1, 'random')], ttl=1))
    assert (redis_connection.multi_exec.call_count == 1)
    redis_connection.mset.assert_called_with(Keys.KEY, 'value', Keys.KEY_1, 'random')
    redis_connection.expire.assert_any_call(Keys.KEY, timeout=1)
    redis_connection.expire.assert_any_call(Keys.KEY_1, timeout=1)
    assert (redis_connection.execute.call_count == 1)