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