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

Method testMonthlyByWeekNoAndWeekDay

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

Source from the content-addressed store, hash-verified

573 datetime(1998, 5, 13, 9, 0)])
574
575 def testMonthlyByWeekNoAndWeekDay(self):
576 # That's a nice one. The first days of week number one
577 # may be in the last year.
578 self.assertEqual(list(rrule(MONTHLY,
579 count=3,
580 byweekno=1,
581 byweekday=MO,
582 dtstart=datetime(1997, 9, 2, 9, 0))),
583 [datetime(1997, 12, 29, 9, 0),
584 datetime(1999, 1, 4, 9, 0),
585 datetime(2000, 1, 3, 9, 0)])
586
587 def testMonthlyByWeekNoAndWeekDayLarge(self):
588 # 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