from datetime import date, timedelta assert date.today().year > (date.today() - timedelta(days=1)).year