MCPcopy Create free account
hub / github.com/dateutil/dateutil / testDailyByWeekNoAndWeekDayLarge

Method testDailyByWeekNoAndWeekDayLarge

tests/test_rrule.py:1231–1241  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1229 datetime(2000, 1, 3, 9, 0)])
1230
1231 def testDailyByWeekNoAndWeekDayLarge(self):
1232 # Another nice test. The last days of week number 52/53
1233 # may be in the next year.
1234 self.assertEqual(list(rrule(DAILY,
1235 count=3,
1236 byweekno=52,
1237 byweekday=SU,
1238 dtstart=datetime(1997, 9, 2, 9, 0))),
1239 [datetime(1997, 12, 28, 9, 0),
1240 datetime(1998, 12, 27, 9, 0),
1241 datetime(2000, 1, 2, 9, 0)])
1242
1243 def testDailyByWeekNoAndWeekDayLast(self):
1244 self.assertEqual(list(rrule(DAILY,

Callers

nothing calls this directly

Calls 1

rruleClass · 0.90

Tested by

no test coverage detected