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

Method testDailyByWeekNoAndWeekDay

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

Source from the content-addressed store, hash-verified

1217 datetime(1998, 5, 13, 9, 0)])
1218
1219 def testDailyByWeekNoAndWeekDay(self):
1220 # That's a nice one. The first days of week number one
1221 # may be in the last year.
1222 self.assertEqual(list(rrule(DAILY,
1223 count=3,
1224 byweekno=1,
1225 byweekday=MO,
1226 dtstart=datetime(1997, 9, 2, 9, 0))),
1227 [datetime(1997, 12, 29, 9, 0),
1228 datetime(1999, 1, 4, 9, 0),
1229 datetime(2000, 1, 3, 9, 0)])
1230
1231 def testDailyByWeekNoAndWeekDayLarge(self):
1232 # Another nice test. The last days of week number 52/53

Callers

nothing calls this directly

Calls 1

rruleClass · 0.90

Tested by

no test coverage detected