diff options
Diffstat (limited to 'test.py')
-rw-r--r-- | test.py | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -2372,6 +2372,17 @@ class RRuleTest(unittest.TestCase): datetime(1997, 9, 2, 18, 6, 18), datetime(1997, 9, 2, 18, 18, 6)]) + def testSecondlyByHourAndMinuteAndSecondBug(self): + # This explores a bug found by Mathieu Bridon. + self.assertEqual(list(rrule(SECONDLY, + count=3, + bysecond=(0,), + byminute=(1,), + dtstart=parse("20100322120100"))), + [datetime(2010, 3, 22, 12, 1), + datetime(2010, 3, 22, 13, 1), + datetime(2010, 3, 22, 14, 1)]) + def testUntilNotMatching(self): self.assertEqual(list(rrule(DAILY, count=3, |