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

Method testSetCachePost

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

Source from the content-addressed store, hash-verified

4740 datetime(1997, 9, 9, 9, 0)])
4741
4742 def testSetCachePost(self):
4743 rrset = rruleset(cache=True)
4744 rrset.rrule(rrule(YEARLY, count=2, byweekday=TU,
4745 dtstart=datetime(1997, 9, 2, 9, 0)))
4746 rrset.rrule(rrule(YEARLY, count=1, byweekday=TH,
4747 dtstart=datetime(1997, 9, 2, 9, 0)))
4748 for x in rrset: pass
4749 self.assertEqual(list(rrset),
4750 [datetime(1997, 9, 2, 9, 0),
4751 datetime(1997, 9, 4, 9, 0),
4752 datetime(1997, 9, 9, 9, 0)])
4753
4754 def testSetCachePostInternal(self):
4755 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