Municipal elections are giving political parties an early stress test before the 2027 presidential race in France.