Paternity test at birth?

My S/O says that the doctors always give a paternity test after the delivery of the child? I've never heard of this. Is this true?