This is only applicable if the owner or the landlord of the property is deceased. Before buying a property together there will be a part wherein you list your name as a Tenant in Common or Joint Tenant and this will appear on the title deeds.
Tenants in Common
In an event that the owner of the property dies still the property is not awarded to the other owners. However, if a Will states that the owner puts more cost to the property than the other partners then all other owners can have it in unequal shares for instance, 60% goes to the owner and 40% for the other owners.
If the original owner of the property dies, then automatically the surviving owner gets the whole property since both parties have equal rights in ownership. A Will cannot determine any act of ownership