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

Method testWeeklyBySetPos

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

Source from the content-addressed store, hash-verified

1042 datetime(1997, 9, 2, 18, 18, 6)])
1043
1044 def testWeeklyBySetPos(self):
1045 self.assertEqual(list(rrule(WEEKLY,
1046 count=3,
1047 byweekday=(TU, TH),
1048 byhour=(6, 18),
1049 bysetpos=(3, -3),
1050 dtstart=datetime(1997, 9, 2, 9, 0))),
1051 [datetime(1997, 9, 2, 18, 0),
1052 datetime(1997, 9, 4, 6, 0),
1053 datetime(1997, 9, 9, 18, 0)])
1054
1055 def testDaily(self):
1056 self.assertEqual(list(rrule(DAILY,

Callers

nothing calls this directly

Calls 1

rruleClass · 0.90

Tested by

no test coverage detected