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

Method testStrSetDateAndExRule

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

Source from the content-addressed store, hash-verified

2947 datetime(1997, 9, 16, 9, 0)])
2948
2949 def testStrSetDateAndExRule(self):
2950 self.assertEqual(list(rrulestr(
2951 "DTSTART:19970902T090000\n"
2952 "RDATE:19970902T090000\n"
2953 "RDATE:19970904T090000\n"
2954 "RDATE:19970909T090000\n"
2955 "RDATE:19970911T090000\n"
2956 "RDATE:19970916T090000\n"
2957 "RDATE:19970918T090000\n"
2958 "EXRULE:FREQ=YEARLY;COUNT=3;BYDAY=TH\n"
2959 )),
2960 [datetime(1997, 9, 2, 9, 0),
2961 datetime(1997, 9, 9, 9, 0),
2962 datetime(1997, 9, 16, 9, 0)])
2963
2964 def testStrKeywords(self):
2965 self.assertEqual(list(rrulestr(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected