def testEasterBadMethod(self): # Invalid methods raise ValueError with self.assertRaises(ValueError): easter(1975, 4)
def testEasterOrthodox(self): for easter_date in orthodox_easter_dates: self.assertEqual(easter_date, easter(easter_date.year, EASTER_ORTHODOX))
def testEasterJulian(self): for easter_date in julian_easter_dates: self.assertEqual(easter_date, easter(easter_date.year, EASTER_JULIAN))
def testEasterWestern(self): for easter_date in western_easter_dates: self.assertEqual(easter_date, easter(easter_date.year, EASTER_WESTERN))