def test_leap_year(self): for i in range(-3000, 3000): self.failIf(is_leap_year(i, learn=True) != calendar.isleap(i))