当前位置: 首页>>代码示例>>Python>>正文


Python meetup.meetup_day函数代码示例

本文整理汇总了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))
开发者ID:Audiodrome,项目名称:exercism,代码行数:3,代码来源:meetup_test.py

示例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'))
开发者ID:LaryMiranda,项目名称:Python,代码行数:3,代码来源:MeetupTest.py

示例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'))
开发者ID:LaryMiranda,项目名称:Python,代码行数:3,代码来源:MeetupTest.py

示例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'))
开发者ID:LaryMiranda,项目名称:Python,代码行数:3,代码来源:MeetupTest.py

示例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'))
开发者ID:LaryMiranda,项目名称:Python,代码行数:3,代码来源:MeetupTest.py

示例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'))
开发者ID:LaryMiranda,项目名称:Python,代码行数:3,代码来源:MeetupTest.py

示例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'))
开发者ID:LaryMiranda,项目名称:Python,代码行数:3,代码来源:MeetupTest.py

示例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))
开发者ID:Audiodrome,项目名称:exercism,代码行数:3,代码来源:meetup_test.py

示例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))
开发者ID:Audiodrome,项目名称:exercism,代码行数:3,代码来源:meetup_test.py

示例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))
开发者ID:Audiodrome,项目名称:exercism,代码行数:3,代码来源:meetup_test.py

示例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))
开发者ID:Audiodrome,项目名称:exercism,代码行数:3,代码来源:meetup_test.py

示例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))
开发者ID:Audiodrome,项目名称:exercism,代码行数:3,代码来源:meetup_test.py

示例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')
开发者ID:Audiodrome,项目名称:exercism,代码行数:3,代码来源:meetup_test.py

示例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))
开发者ID:Audiodrome,项目名称:exercism,代码行数:3,代码来源:meetup_test.py

示例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))
开发者ID:Audiodrome,项目名称:exercism,代码行数:3,代码来源:meetup_test.py


注:本文中的meetup.meetup_day函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。