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

Method testYearlyBySetPos

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

Source from the content-addressed store, hash-verified

383 datetime(1997, 9, 2, 18, 18, 6)])
384
385 def testYearlyBySetPos(self):
386 self.assertEqual(list(rrule(YEARLY,
387 count=3,
388 bymonthday=15,
389 byhour=(6, 18),
390 bysetpos=(3, -3),
391 dtstart=datetime(1997, 9, 2, 9, 0))),
392 [datetime(1997, 11, 15, 18, 0),
393 datetime(1998, 2, 15, 6, 0),
394 datetime(1998, 11, 15, 18, 0)])
395
396 def testMonthly(self):
397 self.assertEqual(list(rrule(MONTHLY,

Callers

nothing calls this directly

Calls 1

rruleClass · 0.90

Tested by

no test coverage detected