summaryrefslogtreecommitdiffstats
path: root/tests/unit/test-003-event.py
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-03-04 12:02:41 -0500
committerThomas Bruederli <bruederli@kolabsys.com>2014-03-04 12:02:41 -0500
commit14a14d77a1178167614ad3bcac9e9dfe4d6e0372 (patch)
tree2cf76eb32d94f1888c8bb2f4b1e9770fc9fabceb /tests/unit/test-003-event.py
parentc5ce78d75fe7d8325cf2467937bba7698db4eafc (diff)
downloadpykolab-14a14d77a1178167614ad3bcac9e9dfe4d6e0372.tar.gz
Import RRULE property from iCal
Diffstat (limited to 'tests/unit/test-003-event.py')
-rw-r--r--tests/unit/test-003-event.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/test-003-event.py b/tests/unit/test-003-event.py
index 5e77bc8..f9fcf8b 100644
--- a/tests/unit/test-003-event.py
+++ b/tests/unit/test-003-event.py
@@ -159,6 +159,8 @@ END:VCALENDAR
self.event.set_start(_start)
self.event.set_end(_start + datetime.timedelta(hours=2))
+ self.assertTrue(self.event.is_recurring())
+
next_date = self.event.get_next_occurence(_start)
self.assertIsInstance(next_date, datetime.datetime)
self.assertEqual(next_date.month, 6)
@@ -183,6 +185,7 @@ END:VCALENDAR
self.assertIsInstance(next_instance, Event)
self.assertEqual(self.event.get_summary(), next_instance.get_summary())
self.assertEqual(next_instance.get_start().month, 7)
+ self.assertFalse(next_instance.is_recurring())
def test_021_calendaring_no_recurrence(self):
_start = datetime.datetime(2014, 2, 1, 14, 30, 00, tzinfo=pytz.timezone("Europe/London"))