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

Method testSetCachePostInternal

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

Source from the content-addressed store, hash-verified

4752 datetime(1997, 9, 9, 9, 0)])
4753
4754 def testSetCachePostInternal(self):
4755 rrset = rruleset(cache=True)
4756 rrset.rrule(rrule(YEARLY, count=2, byweekday=TU,
4757 dtstart=datetime(1997, 9, 2, 9, 0)))
4758 rrset.rrule(rrule(YEARLY, count=1, byweekday=TH,
4759 dtstart=datetime(1997, 9, 2, 9, 0)))
4760 for x in rrset: pass
4761 self.assertEqual(list(rrset._cache),
4762 [datetime(1997, 9, 2, 9, 0),
4763 datetime(1997, 9, 4, 9, 0),
4764 datetime(1997, 9, 9, 9, 0)])
4765
4766 def testSetRRuleCount(self):
4767 # Test that the count is updated when an rrule is added

Callers

nothing calls this directly

Calls 3

rrulesetClass · 0.90
rruleClass · 0.90
rruleMethod · 0.80

Tested by

no test coverage detected