My Mitsubishi GTO is 27 years old and the pipes are no where near that bad!.
I've cleaned an painted them this year but to be honest I'd change those in the picture without a doubt..
I agree - I would not want to risk pipes in that condition on any vehicle I had to drive, I did once have a single circuit brake pipe fail on a downhill, with tight bends. I had to rub the speed off on a hedge - absolutely not fun. That vehicle had a valid MOT.
I doubt the wisdom of painting them too, paint can be used to hide failing pipes and can make an inspector suspicious. My tame MOT inspector says he is happy with light corrosion rubbed down and grease applied. The grease he says, allows him to feel the condition under the grease with his fingers - anything could be hiding under paint. Corrosion can continue under paint too.