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

Method testSetCachePost

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

Source from the content-addressed store, hash-verified

4748 datetime(1997, 9, 9, 9, 0)])
4749
4750 def testSetCachePost(self):
4751 rrset = rruleset(cache=True)
4752 rrset.rrule(rrule(YEARLY, count=2, byweekday=TU,
4753 dtstart=datetime(1997, 9, 2, 9, 0)))
4754 rrset.rrule(rrule(YEARLY, count=1, byweekday=TH,
4755 dtstart=datetime(1997, 9, 2, 9, 0)))
4756 for x in rrset: pass
4757 self.assertEqual(list(rrset),
4758 [datetime(1997, 9, 2, 9, 0),
4759 datetime(1997, 9, 4, 9, 0),
4760 datetime(1997, 9, 9, 9, 0)])
4761
4762 def testSetCachePostInternal(self):
4763 rrset = rruleset(cache=True)

Callers

nothing calls this directly

Calls 3

rrulesetClass · 0.90
rruleClass · 0.90
rruleMethod · 0.80

Tested by

no test coverage detected