At the time fixed for the hearing of such petition, the petitioner must appear and testify. Upon the hearing thereof, affidavits shall be received in evidence and shall have the same force and effect as if the testimony had been taken by deposition.
§ 27-32-203, MCA