The tenant cannot dispute his landlord's title, nor attorn to another claimant while in possession, except in cases provided otherwise in this Code.