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

Method testCachePost

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

Source from the content-addressed store, hash-verified

2603 datetime(1997, 9, 16, 9, 0)])
2604
2605 def testCachePost(self):
2606 rr = rrule(DAILY, count=15, cache=True,
2607 dtstart=datetime(1997, 9, 2, 9, 0))
2608 for x in rr: pass
2609 self.assertEqual(list(rr),
2610 [datetime(1997, 9, 2, 9, 0),
2611 datetime(1997, 9, 3, 9, 0),
2612 datetime(1997, 9, 4, 9, 0),
2613 datetime(1997, 9, 5, 9, 0),
2614 datetime(1997, 9, 6, 9, 0),
2615 datetime(1997, 9, 7, 9, 0),
2616 datetime(1997, 9, 8, 9, 0),
2617 datetime(1997, 9, 9, 9, 0),
2618 datetime(1997, 9, 10, 9, 0),
2619 datetime(1997, 9, 11, 9, 0),
2620 datetime(1997, 9, 12, 9, 0),
2621 datetime(1997, 9, 13, 9, 0),
2622 datetime(1997, 9, 14, 9, 0),
2623 datetime(1997, 9, 15, 9, 0),
2624 datetime(1997, 9, 16, 9, 0)])
2625
2626 def testCachePostInternal(self):
2627 rr = rrule(DAILY, count=15, cache=True,

Callers

nothing calls this directly

Calls 1

rruleClass · 0.90

Tested by

no test coverage detected