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

Method testSetCachePre

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

Source from the content-addressed store, hash-verified

4729 self.assertEqual(rrset.count(), 3)
4730
4731 def testSetCachePre(self):
4732 rrset = rruleset()
4733 rrset.rrule(rrule(YEARLY, count=2, byweekday=TU,
4734 dtstart=datetime(1997, 9, 2, 9, 0)))
4735 rrset.rrule(rrule(YEARLY, count=1, byweekday=TH,
4736 dtstart=datetime(1997, 9, 2, 9, 0)))
4737 self.assertEqual(list(rrset),
4738 [datetime(1997, 9, 2, 9, 0),
4739 datetime(1997, 9, 4, 9, 0),
4740 datetime(1997, 9, 9, 9, 0)])
4741
4742 def testSetCachePost(self):
4743 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