Straight copper pipe, at least 30cm long ... fridge magnets stick to the side of a fridge that's made of steel. That kind of magnetic attraction is quite a strong effect. It is called ferromagnetism.