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

Method testCachePostInternal

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

Source from the content-addressed store, hash-verified

2624 datetime(1997, 9, 16, 9, 0)])
2625
2626 def testCachePostInternal(self):
2627 rr = rrule(DAILY, count=15, cache=True,
2628 dtstart=datetime(1997, 9, 2, 9, 0))
2629 for x in rr: pass
2630 self.assertEqual(rr._cache,
2631 [datetime(1997, 9, 2, 9, 0),
2632 datetime(1997, 9, 3, 9, 0),
2633 datetime(1997, 9, 4, 9, 0),
2634 datetime(1997, 9, 5, 9, 0),
2635 datetime(1997, 9, 6, 9, 0),
2636 datetime(1997, 9, 7, 9, 0),
2637 datetime(1997, 9, 8, 9, 0),
2638 datetime(1997, 9, 9, 9, 0),
2639 datetime(1997, 9, 10, 9, 0),
2640 datetime(1997, 9, 11, 9, 0),
2641 datetime(1997, 9, 12, 9, 0),
2642 datetime(1997, 9, 13, 9, 0),
2643 datetime(1997, 9, 14, 9, 0),
2644 datetime(1997, 9, 15, 9, 0),
2645 datetime(1997, 9, 16, 9, 0)])
2646
2647 def testCachePreContains(self):
2648 rr = rrule(DAILY, count=3, cache=True,

Callers

nothing calls this directly

Calls 1

rruleClass · 0.90

Tested by

no test coverage detected