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

Method testSetCachePre

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

Source from the content-addressed store, hash-verified

4737 self.assertEqual(rrset.count(), 3)
4738
4739 def testSetCachePre(self):
4740 rrset = rruleset()
4741 rrset.rrule(rrule(YEARLY, count=2, byweekday=TU,
4742 dtstart=datetime(1997, 9, 2, 9, 0)))
4743 rrset.rrule(rrule(YEARLY, count=1, byweekday=TH,
4744 dtstart=datetime(1997, 9, 2, 9, 0)))
4745 self.assertEqual(list(rrset),
4746 [datetime(1997, 9, 2, 9, 0),
4747 datetime(1997, 9, 4, 9, 0),
4748 datetime(1997, 9, 9, 9, 0)])
4749
4750 def testSetCachePost(self):
4751 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