summaryrefslogtreecommitdiffstats
path: root/tests/unit/test-003-event.py
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-03-04 15:50:51 -0500
committerThomas Bruederli <bruederli@kolabsys.com>2014-03-04 15:50:51 -0500
commitf4b9812231a169f48fd0a45fa788d4aa09026387 (patch)
tree23c6d5a30e0a61b36749572d6abfb6932d483a54 /tests/unit/test-003-event.py
parent74c17bde3f0eb6d83730d3711c8b9d8f68c6c2dc (diff)
downloadpykolab-f4b9812231a169f48fd0a45fa788d4aa09026387.tar.gz
Basic support for recurring resource invitations
Diffstat (limited to 'tests/unit/test-003-event.py')
-rw-r--r--tests/unit/test-003-event.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/unit/test-003-event.py b/tests/unit/test-003-event.py
index 3f9083e..429e5bc 100644
--- a/tests/unit/test-003-event.py
+++ b/tests/unit/test-003-event.py
@@ -190,6 +190,14 @@ END:VCALENDAR
self.assertEqual(self.event.get_next_occurence(last_date), None)
+ # check infinite recurrence
+ rrule = kolabformat.RecurrenceRule()
+ rrule.setFrequency(kolabformat.RecurrenceRule.Monthly)
+ self.event.set_recurrence(rrule);
+
+ self.assertEqual(self.event.get_last_occurrence(), None)
+ self.assertIsInstance(self.event.get_last_occurrence(force=True), datetime.datetime)
+
# check get_next_instance() which returns a clone of the base event
next_instance = self.event.get_next_instance(next_date)
self.assertIsInstance(next_instance, Event)