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

Method testStrSetDateAndExRule

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

Source from the content-addressed store, hash-verified

2938 datetime(1997, 9, 16, 9, 0)])
2939
2940 def testStrSetDateAndExRule(self):
2941 self.assertEqual(list(rrulestr(
2942 "DTSTART:19970902T090000\n"
2943 "RDATE:19970902T090000\n"
2944 "RDATE:19970904T090000\n"
2945 "RDATE:19970909T090000\n"
2946 "RDATE:19970911T090000\n"
2947 "RDATE:19970916T090000\n"
2948 "RDATE:19970918T090000\n"
2949 "EXRULE:FREQ=YEARLY;COUNT=3;BYDAY=TH\n"
2950 )),
2951 [datetime(1997, 9, 2, 9, 0),
2952 datetime(1997, 9, 9, 9, 0),
2953 datetime(1997, 9, 16, 9, 0)])
2954
2955 def testStrKeywords(self):
2956 self.assertEqual(list(rrulestr(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected