Sections 991 and 992 shall apply to an action to foreclose a mortgage on real property.