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

Method testStrUntil

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

Source from the content-addressed store, hash-verified

2973 datetime(1998, 12, 31, 9, 0)])
2974
2975 def testStrUntil(self):
2976 self.assertEqual(list(rrulestr(
2977 "DTSTART:19970902T090000\n"
2978 "RRULE:FREQ=YEARLY;"
2979 "UNTIL=19990101T000000;BYDAY=1TU,-1TH\n"
2980 )),
2981 [datetime(1997, 12, 25, 9, 0),
2982 datetime(1998, 1, 6, 9, 0),
2983 datetime(1998, 12, 31, 9, 0)])
2984
2985 def testStrValueDatetime(self):
2986 rr = rrulestr("DTSTART;VALUE=DATE-TIME:19970902T090000\n"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected