Haven't found the warranty information though which will tell us the real expected life for the Sedan. For the Roadsters, they come with a 3 year/36,000 mile warranty, but that does not include a battery replacement warranty, which is an additional purchase.
Musk stated in 2009 that a single battery pack replacement for the Roadster would cost $36,000 in 2009 dollars, but it seems to be something that wasn't actually available yet. (http://www.autoobserver.com/2009/02/tesla-battery-pack-repla...) There he also explains that the battery pseudo-warranty costs $12,000 extra. The inverse pro-rated pseudo-warranty is structured so that customers have to pay an additional fee if the battery fails before 7 years, and get a partial refund if they last more than 7 years.
http://www.teslamotors.com/about/press/releases/tesla-launch...