本文整理汇总了Python中meetup.meetup_day函数的典型用法代码示例。如果您正苦于以下问题:Python meetup_day函数的具体用法?Python meetup_day怎么用?Python meetup_day使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了meetup_day函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_last_sunday_of_february_2015
def test_last_sunday_of_february_2015(self):
self.assertEqual(
meetup_day(2015, 2, 'Sunday', 'last'), date(2015, 2, 22))
示例2: test_last_wednesday_of_december_2014
def test_last_wednesday_of_december_2014(self):
self.assertEqual(date(2014, 12, 31),
meetup_day(2014, 12, 'Wednesday', 'last'))
示例3: test_first_friday_of_december_2012
def test_first_friday_of_december_2012(self):
self.assertEqual(date(2012, 12, 7),
meetup_day(2012, 12, 'Friday', '1st'))
示例4: test_third_thursday_of_september_2013
def test_third_thursday_of_september_2013(self):
self.assertEqual(date(2013, 9, 19),
meetup_day(2013, 9, 'Thursday', '3rd'))
示例5: test_last_thursday_of_october_2013
def test_last_thursday_of_october_2013(self):
self.assertEqual(date(2013, 10, 31),
meetup_day(2013, 10, 'Thursday', 'last'))
示例6: test_monteenth_of_may_2013
def test_monteenth_of_may_2013(self):
self.assertEqual(date(2013, 5, 13),
meetup_day(2013, 5, 'Monday', 'teenth'))
示例7: test_first_tuesday_of_may_2013
def test_first_tuesday_of_may_2013(self):
self.assertEqual(date(2013, 5, 7),
meetup_day(2013, 5, 'Tuesday', '1st'))
示例8: test_thursteenth_of_june_2013
def test_thursteenth_of_june_2013(self):
self.assertEqual(
meetup_day(2013, 6, 'Thursday', 'teenth'), date(2013, 6, 13))
示例9: test_thursteenth_of_september_2013
def test_thursteenth_of_september_2013(self):
self.assertEqual(
meetup_day(2013, 9, 'Thursday', 'teenth'), date(2013, 9, 19))
示例10: test_wednesteenth_of_june_2013
def test_wednesteenth_of_june_2013(self):
self.assertEqual(
meetup_day(2013, 6, 'Wednesday', 'teenth'), date(2013, 6, 19))
示例11: test_thursteenth_of_may_2013
def test_thursteenth_of_may_2013(self):
self.assertEqual(
meetup_day(2013, 5, 'Thursday', 'teenth'), date(2013, 5, 16))
示例12: test_wednesteenth_of_february_2013
def test_wednesteenth_of_february_2013(self):
self.assertEqual(
meetup_day(2013, 2, 'Wednesday', 'teenth'), date(2013, 2, 13))
示例13: test_nonexistent_fifth_monday_of_february_2015
def test_nonexistent_fifth_monday_of_february_2015(self):
with self.assertRaisesWithMessage(MeetupDayException):
meetup_day(2015, 2, 'Monday', '5th')
示例14: test_wednesteenth_of_january_2013
def test_wednesteenth_of_january_2013(self):
self.assertEqual(
meetup_day(2013, 1, 'Wednesday', 'teenth'), date(2013, 1, 16))
示例15: test_sunteenth_of_october_2013
def test_sunteenth_of_october_2013(self):
self.assertEqual(
meetup_day(2013, 10, 'Sunday', 'teenth'), date(2013, 10, 13))