Пример #1
0
 def test_second_friday_of_november_2013(self):
     self.assertEqual(
         meetup_day(2013, 11, 'Friday', '2nd'), date(2013, 11, 8))
Пример #2
0
 def test_third_thursday_of_september_2013(self):
     self.assertEqual(date(2013, 9, 19),
                      meetup_day(2013, 9, 'Thursday', '3rd'))
Пример #3
0
 def test_last_wednesday_of_december_2014(self):
     self.assertEqual(date(2014, 12, 31),
                      meetup_day(2014, 12, 'Wednesday', 'last'))
Пример #4
0
 def test_sunteenth_of_may_2013(self):
     self.assertEqual(
         meetup_day(2013, 5, 'Sunday', 'teenth'), date(2013, 5, 19))
Пример #5
0
 def test_monteenth_of_may_2013(self):
     self.assertEqual(date(2013, 5, 13),
                      meetup_day(2013, 5, 'Monday', 'teenth'))
Пример #6
0
 def test_thursteenth_of_may_2013(self):
     self.assertEqual(
         meetup_day(2013, 5, 'Thursday', 'teenth'), date(2013, 5, 16))
Пример #7
0
 def test_friteenth_of_august_2013(self):
     self.assertEqual(
         meetup_day(2013, 8, 'Friday', 'teenth'), date(2013, 8, 16))
Пример #8
0
 def test_third_monday_of_april_2013(self):
     self.assertEqual(
         meetup_day(2013, 4, 'Monday', '3rd'), date(2013, 4, 15))
Пример #9
0
 def test_third_tuesday_of_may_2013(self):
     self.assertEqual(
         meetup_day(2013, 5, 'Tuesday', '3rd'), date(2013, 5, 21))
Пример #10
0
 def test_second_sunday_of_march_2013(self):
     self.assertEqual(
         meetup_day(2013, 3, 'Sunday', '2nd'), date(2013, 3, 10))
Пример #11
0
 def test_second_sunday_of_april_2013(self):
     self.assertEqual(
         meetup_day(2013, 4, 'Sunday', '2nd'), date(2013, 4, 14))
Пример #12
0
 def test_second_saturday_of_february_2013(self):
     self.assertEqual(
         meetup_day(2013, 2, 'Saturday', '2nd'), date(2013, 2, 9))
Пример #13
0
 def test_second_saturday_of_january_2013(self):
     self.assertEqual(
         meetup_day(2013, 1, 'Saturday', '2nd'), date(2013, 1, 12))
Пример #14
0
 def test_second_friday_of_december_2013(self):
     self.assertEqual(
         meetup_day(2013, 12, 'Friday', '2nd'), date(2013, 12, 13))
Пример #15
0
 def test_wednesteenth_of_january_2013(self):
     self.assertEqual(
         meetup_day(2013, 1, 'Wednesday', 'teenth'), date(2013, 1, 16))
Пример #16
0
 def test_third_tuesday_of_june_2013(self):
     self.assertEqual(
         meetup_day(2013, 6, 'Tuesday', '3rd'), date(2013, 6, 18))
Пример #17
0
 def test_wednesteenth_of_february_2013(self):
     self.assertEqual(
         meetup_day(2013, 2, 'Wednesday', 'teenth'), date(2013, 2, 13))
Пример #18
0
 def test_third_wednesday_of_july_2013(self):
     self.assertEqual(
         meetup_day(2013, 7, 'Wednesday', '3rd'), date(2013, 7, 17))
Пример #19
0
 def test_thursteenth_of_september_2013(self):
     self.assertEqual(
         meetup_day(2013, 9, 'Thursday', 'teenth'), date(2013, 9, 19))
Пример #20
0
 def test_third_wednesday_of_august_2013(self):
     self.assertEqual(
         meetup_day(2013, 8, 'Wednesday', '3rd'), date(2013, 8, 21))
Пример #21
0
 def test_saturteenth_of_april_2013(self):
     self.assertEqual(
         meetup_day(2013, 4, 'Saturday', 'teenth'), date(2013, 4, 13))
Пример #22
0
 def test_third_thursday_of_september_2013(self):
     self.assertEqual(
         meetup_day(2013, 9, 'Thursday', '3rd'), date(2013, 9, 19))
Пример #23
0
 def test_sunteenth_of_october_2013(self):
     self.assertEqual(
         meetup_day(2013, 10, 'Sunday', 'teenth'), date(2013, 10, 13))
Пример #24
0
 def test_third_thursday_of_october_2013(self):
     self.assertEqual(
         meetup_day(2013, 10, 'Thursday', '3rd'), date(2013, 10, 17))
Пример #25
0
 def test_first_tuesday_of_may_2013(self):
     self.assertEqual(date(2013, 5, 7),
                      meetup_day(2013, 5, 'Tuesday', '1st'))
Пример #26
0
 def test_third_friday_of_november_2013(self):
     self.assertEqual(
         meetup_day(2013, 11, 'Friday', '3rd'), date(2013, 11, 15))
Пример #27
0
 def test_last_thursday_of_october_2013(self):
     self.assertEqual(date(2013, 10, 31),
                      meetup_day(2013, 10, 'Thursday', 'last'))
Пример #28
0
 def test_third_friday_of_december_2013(self):
     self.assertEqual(
         meetup_day(2013, 12, 'Friday', '3rd'), date(2013, 12, 20))
Пример #29
0
 def test_first_friday_of_december_2012(self):
     self.assertEqual(date(2012, 12, 7),
                      meetup_day(2012, 12, 'Friday', '1st'))
Пример #30
0
 def test_third_saturday_of_january_2013(self):
     self.assertEqual(
         meetup_day(2013, 1, 'Saturday', '3rd'), date(2013, 1, 19))
Пример #31
0
 def test_last_sunday_of_february_2015(self):
     self.assertEqual(
         meetup_day(2015, 2, 'Sunday', 'last'), date(2015, 2, 22))
Пример #32
0
 def test_third_saturday_of_february_2013(self):
     self.assertEqual(
         meetup_day(2013, 2, 'Saturday', '3rd'), date(2013, 2, 16))
Пример #33
0
 def test_nonexistent_fifth_monday_of_february_2015(self):
     with self.assertRaisesWithMessage(MeetupDayException):
         meetup_day(2015, 2, 'Monday', '5th')
Пример #34
0
 def test_third_sunday_of_march_2013(self):
     self.assertEqual(
         meetup_day(2013, 3, 'Sunday', '3rd'), date(2013, 3, 17))
Пример #35
0
 def test_wednesteenth_of_june_2013(self):
     self.assertEqual(
         meetup_day(2013, 6, 'Wednesday', 'teenth'), date(2013, 6, 19))
Пример #36
0
 def test_third_sunday_of_april_2013(self):
     self.assertEqual(
         meetup_day(2013, 4, 'Sunday', '3rd'), date(2013, 4, 21))
Пример #37
0
 def test_thursteenth_of_june_2013(self):
     self.assertEqual(
         meetup_day(2013, 6, 'Thursday', 'teenth'), date(2013, 6, 13))
Пример #38
0
 def test_fourth_monday_of_march_2013(self):
     self.assertEqual(
         meetup_day(2013, 3, 'Monday', '4th'), date(2013, 3, 25))
Пример #39
0
 def test_friteenth_of_april_2013(self):
     self.assertEqual(
         meetup_day(2013, 4, 'Friday', 'teenth'), date(2013, 4, 19))
Пример #40
0
 def test_fourth_monday_of_april_2013(self):
     self.assertEqual(
         meetup_day(2013, 4, 'Monday', '4th'), date(2013, 4, 22))
Пример #41
0
 def test_friteenth_of_september_2013(self):
     self.assertEqual(
         meetup_day(2013, 9, 'Friday', 'teenth'), date(2013, 9, 13))
Пример #42
0
 def test_fourth_tuesday_of_may_2013(self):
     self.assertEqual(
         meetup_day(2013, 5, 'Tuesday', '4th'), date(2013, 5, 28))
Пример #43
0
 def test_saturteenth_of_october_2013(self):
     self.assertEqual(
         meetup_day(2013, 10, 'Saturday', 'teenth'), date(2013, 10, 19))
Пример #44
0
 def test_fourth_tuesday_of_june_2013(self):
     self.assertEqual(
         meetup_day(2013, 6, 'Tuesday', '4th'), date(2013, 6, 25))
Пример #45
0
 def test_sunteenth_of_june_2013(self):
     self.assertEqual(
         meetup_day(2013, 6, 'Sunday', 'teenth'), date(2013, 6, 16))
Пример #46
0
 def test_fourth_wednesday_of_july_2013(self):
     self.assertEqual(
         meetup_day(2013, 7, 'Wednesday', '4th'), date(2013, 7, 24))
Пример #47
0
 def test_first_monday_of_march_2013(self):
     self.assertEqual(
         meetup_day(2013, 3, 'Monday', '1st'), date(2013, 3, 4))
Пример #48
0
 def test_fourth_wednesday_of_august_2013(self):
     self.assertEqual(
         meetup_day(2013, 8, 'Wednesday', '4th'), date(2013, 8, 28))
Пример #49
0
 def test_saturteenth_of_february_2013(self):
     self.assertEqual(date(2013, 2, 16),
                      meetup_day(2013, 2, 'Saturday', 'teenth'))
Пример #50
0
 def test_fourth_thursday_of_september_2013(self):
     self.assertEqual(
         meetup_day(2013, 9, 'Thursday', '4th'), date(2013, 9, 26))
Пример #51
0
 def test_second_monday_of_april_2013(self):
     self.assertEqual(date(2013, 4, 8),
                      meetup_day(2013, 4, 'Monday', '2nd'))
Пример #52
0
 def test_fourth_thursday_of_october_2013(self):
     self.assertEqual(
         meetup_day(2013, 10, 'Thursday', '4th'), date(2013, 10, 24))
Пример #53
0
 def test_fourth_sunday_of_march_2013(self):
     self.assertEqual(date(2013, 3, 24),
                      meetup_day(2013, 3, 'Sunday', '4th'))
Пример #54
0
 def test_fourth_friday_of_november_2013(self):
     self.assertEqual(
         meetup_day(2013, 11, 'Friday', '4th'), date(2013, 11, 22))
Пример #55
0
 def test_last_wednesday_of_february_2012(self):
     self.assertEqual(date(2012, 2, 29),
                      meetup_day(2012, 2, 'Wednesday', 'last'))
Пример #56
0
 def test_fourth_friday_of_december_2013(self):
     self.assertEqual(
         meetup_day(2013, 12, 'Friday', '4th'), date(2013, 12, 27))
Пример #57
0
 def test_last_sunday_of_only_four_week_february_2015(self):
     self.assertEqual(date(2015, 2, 22),
                      meetup_day(2015, 2, 'Sunday', 'last'))
Пример #58
0
 def test_last_sunday_of_april_2013(self):
     self.assertEqual(
         meetup_day(2013, 4, 'Sunday', 'last'), date(2013, 4, 28))
Пример #59
0
 def test_fifth_monday_of_march_2015(self):
     self.assertEqual(date(2015, 3, 30),
                      meetup_day(2015, 3, 'Monday', '5th'))
Пример #60
0
 def test_second_thursday_of_october_2013(self):
     self.assertEqual(
         meetup_day(2013, 10, 'Thursday', '2nd'), date(2013, 10, 10))