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

Method testCachePre

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

Source from the content-addressed store, hash-verified

2593 datetime(1997, 9, 6, 9, 0)])
2594
2595 def testCachePre(self):
2596 rr = rrule(DAILY, count=15, cache=True,
2597 dtstart=datetime(1997, 9, 2, 9, 0))
2598 self.assertEqual(list(rr),
2599 [datetime(1997, 9, 2, 9, 0),
2600 datetime(1997, 9, 3, 9, 0),
2601 datetime(1997, 9, 4, 9, 0),
2602 datetime(1997, 9, 5, 9, 0),
2603 datetime(1997, 9, 6, 9, 0),
2604 datetime(1997, 9, 7, 9, 0),
2605 datetime(1997, 9, 8, 9, 0),
2606 datetime(1997, 9, 9, 9, 0),
2607 datetime(1997, 9, 10, 9, 0),
2608 datetime(1997, 9, 11, 9, 0),
2609 datetime(1997, 9, 12, 9, 0),
2610 datetime(1997, 9, 13, 9, 0),
2611 datetime(1997, 9, 14, 9, 0),
2612 datetime(1997, 9, 15, 9, 0),
2613 datetime(1997, 9, 16, 9, 0)])
2614
2615 def testCachePost(self):
2616 rr = rrule(DAILY, count=15, cache=True,

Callers

nothing calls this directly

Calls 1

rruleClass · 0.90

Tested by

no test coverage detected