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

Method testYearlyByWeekNoAndWeekDay

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

Source from the content-addressed store, hash-verified

244 datetime(1998, 5, 13, 9, 0)])
245
246 def testYearlyByWeekNoAndWeekDay(self):
247 # That's a nice one. The first days of week number one
248 # may be in the last year.
249 self.assertEqual(list(rrule(YEARLY,
250 count=3,
251 byweekno=1,
252 byweekday=MO,
253 dtstart=datetime(1997, 9, 2, 9, 0))),
254 [datetime(1997, 12, 29, 9, 0),
255 datetime(1999, 1, 4, 9, 0),
256 datetime(2000, 1, 3, 9, 0)])
257
258 def testYearlyByWeekNoAndWeekDayLarge(self):
259 # 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