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

Method testStrSetDateAndExDate

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

Source from the content-addressed store, hash-verified

2930 assert list(rr) == [datetime(1997, 9, 4), datetime(1997, 9, 11)]
2931
2932 def testStrSetDateAndExDate(self):
2933 self.assertEqual(list(rrulestr(
2934 "DTSTART:19970902T090000\n"
2935 "RDATE:19970902T090000\n"
2936 "RDATE:19970904T090000\n"
2937 "RDATE:19970909T090000\n"
2938 "RDATE:19970911T090000\n"
2939 "RDATE:19970916T090000\n"
2940 "RDATE:19970918T090000\n"
2941 "EXDATE:19970904T090000\n"
2942 "EXDATE:19970911T090000\n"
2943 "EXDATE:19970918T090000\n"
2944 )),
2945 [datetime(1997, 9, 2, 9, 0),
2946 datetime(1997, 9, 9, 9, 0),
2947 datetime(1997, 9, 16, 9, 0)])
2948
2949 def testStrSetDateAndExRule(self):
2950 self.assertEqual(list(rrulestr(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected