| 4760 | datetime(1997, 9, 9, 9, 0)]) |
| 4761 | |
| 4762 | def testSetCachePostInternal(self): |
| 4763 | rrset = rruleset(cache=True) |
| 4764 | rrset.rrule(rrule(YEARLY, count=2, byweekday=TU, |
| 4765 | dtstart=datetime(1997, 9, 2, 9, 0))) |
| 4766 | rrset.rrule(rrule(YEARLY, count=1, byweekday=TH, |
| 4767 | dtstart=datetime(1997, 9, 2, 9, 0))) |
| 4768 | for x in rrset: pass |
| 4769 | self.assertEqual(list(rrset._cache), |
| 4770 | [datetime(1997, 9, 2, 9, 0), |
| 4771 | datetime(1997, 9, 4, 9, 0), |
| 4772 | datetime(1997, 9, 9, 9, 0)]) |
| 4773 | |
| 4774 | def testSetRRuleCount(self): |
| 4775 | # Test that the count is updated when an rrule is added |