def test_calc_streak_broken(self): e = Entry( parent=self.task, date=timezone.now() + timedelta(days=30), value=10 ) eq_(e._calc_streak(), 1)