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

Method testMonthlyByWeekNoAndWeekDay

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

Source from the content-addressed store, hash-verified

586 datetime(1998, 5, 13, 9, 0)])
587
588 def testMonthlyByWeekNoAndWeekDay(self):
589 # That's a nice one. The first days of week number one
590 # may be in the last year.
591 self.assertEqual(list(rrule(MONTHLY,
592 count=3,
593 byweekno=1,
594 byweekday=MO,
595 dtstart=datetime(1997, 9, 2, 9, 0))),
596 [datetime(1997, 12, 29, 9, 0),
597 datetime(1999, 1, 4, 9, 0),
598 datetime(2000, 1, 3, 9, 0)])
599
600 def testMonthlyByWeekNoAndWeekDayLarge(self):
601 # 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