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

Method testStrKeywords

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

Source from the content-addressed store, hash-verified

2962 datetime(1997, 9, 16, 9, 0)])
2963
2964 def testStrKeywords(self):
2965 self.assertEqual(list(rrulestr(
2966 "DTSTART:19970902T090000\n"
2967 "RRULE:FREQ=YEARLY;COUNT=3;INTERVAL=3;"
2968 "BYMONTH=3;BYWEEKDAY=TH;BYMONTHDAY=3;"
2969 "BYHOUR=3;BYMINUTE=3;BYSECOND=3\n"
2970 )),
2971 [datetime(2033, 3, 3, 3, 3, 3),
2972 datetime(2039, 3, 3, 3, 3, 3),
2973 datetime(2072, 3, 3, 3, 3, 3)])
2974
2975 def testStrNWeekDay(self):
2976 self.assertEqual(list(rrulestr(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected