Made test work under Python 2.6

timedelta in Python 2.6 doesn’t have the total_seconds() method.