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

Method testStrSetDate

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

Source from the content-addressed store, hash-verified

2820 datetime(1997, 9, 9, 9, 0)])
2821
2822 def testStrSetDate(self):
2823 self.assertEqual(list(rrulestr(
2824 "DTSTART:19970902T090000\n"
2825 "RRULE:FREQ=YEARLY;COUNT=1;BYDAY=TU\n"
2826 "RDATE:19970904T090000\n"
2827 "RDATE:19970909T090000\n"
2828 )),
2829 [datetime(1997, 9, 2, 9, 0),
2830 datetime(1997, 9, 4, 9, 0),
2831 datetime(1997, 9, 9, 9, 0)])
2832
2833 def testStrSetExRule(self):
2834 self.assertEqual(list(rrulestr(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected