An agreement for a lease, or with respect to the letting of any immovable property, for any term not exceeding 35 years or for any indefinite term is to be charged with the same duty as if it were an actual lease made for the term and consideration mentioned in the agreement.