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

Method testStrValueDate

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

Source from the content-addressed store, hash-verified

2999 datetime(1998, 9, 2, 9, 0, 0)])
3000
3001 def testStrValueDate(self):
3002 rr = rrulestr("DTSTART;VALUE=DATE:19970902\n"
3003 "RRULE:FREQ=YEARLY;COUNT=2")
3004
3005 self.assertEqual(list(rr), [datetime(1997, 9, 2, 0, 0, 0),
3006 datetime(1998, 9, 2, 0, 0, 0)])
3007
3008 def testStrMultipleDTStartComma(self):
3009 with pytest.raises(ValueError):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected