Пример #1
0
 def testEasterBadMethod(self):
     # Invalid methods raise ValueError
     with self.assertRaises(ValueError):
         easter(1975, 4)
Пример #2
0
 def testEasterOrthodox(self):
     for easter_date in orthodox_easter_dates:
         self.assertEqual(easter_date,
                          easter(easter_date.year, EASTER_ORTHODOX))
Пример #3
0
 def testEasterJulian(self):
     for easter_date in julian_easter_dates:
         self.assertEqual(easter_date,
                          easter(easter_date.year, EASTER_JULIAN))
Пример #4
0
 def testEasterWestern(self):
     for easter_date in western_easter_dates:
         self.assertEqual(easter_date,
                          easter(easter_date.year, EASTER_WESTERN))
Пример #5
0
 def testEasterBadMethod(self):
     # Invalid methods raise ValueError
     with self.assertRaises(ValueError):
         easter(1975, 4)
Пример #6
0
 def testEasterJulian(self):
     for easter_date in julian_easter_dates:
         self.assertEqual(easter_date,
                          easter(easter_date.year, EASTER_JULIAN))
Пример #7
0
 def testEasterOrthodox(self):
     for easter_date in orthodox_easter_dates:
         self.assertEqual(easter_date,
                          easter(easter_date.year, EASTER_ORTHODOX))
Пример #8
0
 def testEasterWestern(self):
     for easter_date in western_easter_dates:
         self.assertEqual(easter_date,
                          easter(easter_date.year, EASTER_WESTERN))