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

Method testSetCachePostInternal

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

Source from the content-addressed store, hash-verified

4760 datetime(1997, 9, 9, 9, 0)])
4761
4762 def testSetCachePostInternal(self):
4763 rrset = rruleset(cache=True)
4764 rrset.rrule(rrule(YEARLY, count=2, byweekday=TU,
4765 dtstart=datetime(1997, 9, 2, 9, 0)))
4766 rrset.rrule(rrule(YEARLY, count=1, byweekday=TH,
4767 dtstart=datetime(1997, 9, 2, 9, 0)))
4768 for x in rrset: pass
4769 self.assertEqual(list(rrset._cache),
4770 [datetime(1997, 9, 2, 9, 0),
4771 datetime(1997, 9, 4, 9, 0),
4772 datetime(1997, 9, 9, 9, 0)])
4773
4774 def testSetRRuleCount(self):
4775 # 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