| 4752 | datetime(1997, 9, 9, 9, 0)]) |
| 4753 | |
| 4754 | def testSetCachePostInternal(self): |
| 4755 | rrset = rruleset(cache=True) |
| 4756 | rrset.rrule(rrule(YEARLY, count=2, byweekday=TU, |
| 4757 | dtstart=datetime(1997, 9, 2, 9, 0))) |
| 4758 | rrset.rrule(rrule(YEARLY, count=1, byweekday=TH, |
| 4759 | dtstart=datetime(1997, 9, 2, 9, 0))) |
| 4760 | for x in rrset: pass |
| 4761 | self.assertEqual(list(rrset._cache), |
| 4762 | [datetime(1997, 9, 2, 9, 0), |
| 4763 | datetime(1997, 9, 4, 9, 0), |
| 4764 | datetime(1997, 9, 9, 9, 0)]) |
| 4765 | |
| 4766 | def testSetRRuleCount(self): |
| 4767 | # Test that the count is updated when an rrule is added |