Beispiel #1
0
 def test_7_iyar_on_shabbos_is_israel_starts_new_subcycle(self):
     test_date = JewishDate(5769, 3, 3)
     limud = PirkeiAvos(in_israel=True).limud(test_date)
     self.assertEqual(limud.end_date(), JewishDate(5769, 3, 7))
     self.assertEqual(limud.description(), '1')
Beispiel #2
0
 def test_iteration_following_7_iyar_on_shabbos_in_israel_starts_next_unit(self):
     test_date = JewishDate(5769, 3, 8)
     limud = PirkeiAvos(in_israel=True).limud(test_date)
     self.assertEqual(limud.end_date(), JewishDate(5769, 3, 14))
     self.assertEqual(limud.description(), '2')
Beispiel #3
0
 def test_iteration_following_7_iyar_on_shabbos_outside_israel_starts_new_subcycle(self):
     test_date = JewishDate(5769, 3, 8)
     limud = PirkeiAvos().limud(test_date)
     self.assertEqual(limud.end_date(), JewishDate(5769, 3, 14))
     self.assertEqual(limud.description(), '1')
Beispiel #4
0
 def test_simple_date(self):
     test_date = JewishDate(5778, 3, 1)
     limud = PirkeiAvos().limud(test_date)
     self.assertEqual(limud.end_date(), JewishDate(5778, 3, 5))
     self.assertEqual(limud.description(), '6')
Beispiel #5
0
 def test_7_iyar_on_shabbos_outside_israel_has_blank_limud(self):
     test_date = JewishDate(5769, 3, 3)
     limud = PirkeiAvos().limud(test_date)
     self.assertEqual(limud.end_date(), JewishDate(5769, 3, 7))
     self.assertIsNone(limud.unit)
Beispiel #6
0
 def test_day_after_pesach_in_israel(self):
     test_date = JewishDate(5778, 1, 23)
     limud = PirkeiAvos(in_israel=True).limud(test_date)
     self.assertEqual(limud.end_date(), JewishDate(5778, 1, 29))
     self.assertEqual(limud.description(), '2')
Beispiel #7
0
 def test_near_end_of_cycle(self):
     test_date = JewishDate(5778, 6, 20)
     limud = PirkeiAvos().limud(test_date)
     self.assertEqual(limud.end_date(), JewishDate(5778, 6, 21))
     self.assertEqual(limud.description(), '3 - 4')