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

Method testCachePre

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

Source from the content-addressed store, hash-verified

2583 datetime(1997, 9, 6, 9, 0)])
2584
2585 def testCachePre(self):
2586 rr = rrule(DAILY, count=15, cache=True,
2587 dtstart=datetime(1997, 9, 2, 9, 0))
2588 self.assertEqual(list(rr),
2589 [datetime(1997, 9, 2, 9, 0),
2590 datetime(1997, 9, 3, 9, 0),
2591 datetime(1997, 9, 4, 9, 0),
2592 datetime(1997, 9, 5, 9, 0),
2593 datetime(1997, 9, 6, 9, 0),
2594 datetime(1997, 9, 7, 9, 0),
2595 datetime(1997, 9, 8, 9, 0),
2596 datetime(1997, 9, 9, 9, 0),
2597 datetime(1997, 9, 10, 9, 0),
2598 datetime(1997, 9, 11, 9, 0),
2599 datetime(1997, 9, 12, 9, 0),
2600 datetime(1997, 9, 13, 9, 0),
2601 datetime(1997, 9, 14, 9, 0),
2602 datetime(1997, 9, 15, 9, 0),
2603 datetime(1997, 9, 16, 9, 0)])
2604
2605 def testCachePost(self):
2606 rr = rrule(DAILY, count=15, cache=True,

Callers

nothing calls this directly

Calls 1

rruleClass · 0.90

Tested by

no test coverage detected