summaryrefslogtreecommitdiffstats
path: root/tests/unit/test-003-event.py
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-08-04 12:49:51 -0400
committerThomas Bruederli <bruederli@kolabsys.com>2014-08-04 12:49:51 -0400
commit5a171ddd85f7f8e57685a469d3de3fc3bb6a99ab (patch)
tree491c67102e8e3b8c32089aaa20597cc3924e73a8 /tests/unit/test-003-event.py
parent0813c350ed72c595bdee53e9c78490d8eccf7e98 (diff)
downloadpykolab-5a171ddd85f7f8e57685a469d3de3fc3bb6a99ab.tar.gz
Allow to set custom event properties and add them in iCal export
Diffstat (limited to 'tests/unit/test-003-event.py')
-rw-r--r--tests/unit/test-003-event.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/test-003-event.py b/tests/unit/test-003-event.py
index f069be3..45a817c 100644
--- a/tests/unit/test-003-event.py
+++ b/tests/unit/test-003-event.py
@@ -417,6 +417,7 @@ END:VEVENT
self.event.set_start(datetime.datetime(2014, 05, 23, 11, 00, 00, tzinfo=pytz.timezone("Europe/London")))
self.event.set_end(datetime.datetime(2014, 05, 23, 12, 30, 00, tzinfo=pytz.timezone("Europe/London")))
self.event.set_sequence(3)
+ self.event.add_custom_property('X-CUSTOM', 'check')
ical = icalendar.Calendar.from_ical(self.event.as_string_itip())
event = ical.walk('VEVENT')[0]
@@ -424,6 +425,7 @@ END:VEVENT
self.assertEqual(event['uid'], self.event.get_uid())
self.assertEqual(event['summary'], "test")
self.assertEqual(event['sequence'], 3)
+ self.assertEqual(event['X-CUSTOM'], "check")
self.assertIsInstance(event['dtstamp'].dt, datetime.datetime)
def test_020_calendaring_recurrence(self):