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

Method testMonthlyByWeekNoAndWeekDayLarge

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

Source from the content-addressed store, hash-verified

585 datetime(2000, 1, 3, 9, 0)])
586
587 def testMonthlyByWeekNoAndWeekDayLarge(self):
588 # Another nice test. The last days of week number 52/53
589 # may be in the next year.
590 self.assertEqual(list(rrule(MONTHLY,
591 count=3,
592 byweekno=52,
593 byweekday=SU,
594 dtstart=datetime(1997, 9, 2, 9, 0))),
595 [datetime(1997, 12, 28, 9, 0),
596 datetime(1998, 12, 27, 9, 0),
597 datetime(2000, 1, 2, 9, 0)])
598
599 def testMonthlyByWeekNoAndWeekDayLast(self):
600 self.assertEqual(list(rrule(MONTHLY,

Callers

nothing calls this directly

Calls 1

rruleClass · 0.90

Tested by

no test coverage detected