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

Method testStrUntil

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

Source from the content-addressed store, hash-verified

2982 datetime(1998, 12, 31, 9, 0)])
2983
2984 def testStrUntil(self):
2985 self.assertEqual(list(rrulestr(
2986 "DTSTART:19970902T090000\n"
2987 "RRULE:FREQ=YEARLY;"
2988 "UNTIL=19990101T000000;BYDAY=1TU,-1TH\n"
2989 )),
2990 [datetime(1997, 12, 25, 9, 0),
2991 datetime(1998, 1, 6, 9, 0),
2992 datetime(1998, 12, 31, 9, 0)])
2993
2994 def testStrValueDatetime(self):
2995 rr = rrulestr("DTSTART;VALUE=DATE-TIME:19970902T090000\n"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected