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

Method testDailyByWeekNoAndWeekDayLarge

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

Source from the content-addressed store, hash-verified

1216 datetime(2000, 1, 3, 9, 0)])
1217
1218 def testDailyByWeekNoAndWeekDayLarge(self):
1219 # Another nice test. The last days of week number 52/53
1220 # may be in the next year.
1221 self.assertEqual(list(rrule(DAILY,
1222 count=3,
1223 byweekno=52,
1224 byweekday=SU,
1225 dtstart=datetime(1997, 9, 2, 9, 0))),
1226 [datetime(1997, 12, 28, 9, 0),
1227 datetime(1998, 12, 27, 9, 0),
1228 datetime(2000, 1, 2, 9, 0)])
1229
1230 def testDailyByWeekNoAndWeekDayLast(self):
1231 self.assertEqual(list(rrule(DAILY,

Callers

nothing calls this directly

Calls 1

rruleClass · 0.90

Tested by

no test coverage detected