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

Method testStrNWeekDay

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

Source from the content-addressed store, hash-verified

2964 datetime(2072, 3, 3, 3, 3, 3)])
2965
2966 def testStrNWeekDay(self):
2967 self.assertEqual(list(rrulestr(
2968 "DTSTART:19970902T090000\n"
2969 "RRULE:FREQ=YEARLY;COUNT=3;BYDAY=1TU,-1TH\n"
2970 )),
2971 [datetime(1997, 12, 25, 9, 0),
2972 datetime(1998, 1, 6, 9, 0),
2973 datetime(1998, 12, 31, 9, 0)])
2974
2975 def testStrUntil(self):
2976 self.assertEqual(list(rrulestr(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected