summaryrefslogtreecommitdiffstats
path: root/tests/unit/test-003-event.py
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-08-23 13:14:11 -0400
committerThomas Bruederli <bruederli@kolabsys.com>2014-08-23 13:14:11 -0400
commitd9f0b4336e151e5cb29b911f1e823289c3dc78bf (patch)
treec29eea3a3818d5a44f28b12c71000646e2bd76a9 /tests/unit/test-003-event.py
parent8517e1d8ca37d1d4f9fb649a91e222de0d83f59b (diff)
downloadpykolab-d9f0b4336e151e5cb29b911f1e823289c3dc78bf.tar.gz
Add getter for the CLASS property to be exported to iCal
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 7124e0c..7fae6eb 100644
--- a/tests/unit/test-003-event.py
+++ b/tests/unit/test-003-event.py
@@ -434,6 +434,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.set_classification('CONFIDENTIAL')
self.event.add_custom_property('X-Custom', 'check')
ical = icalendar.Calendar.from_ical(self.event.as_string_itip())
@@ -444,6 +445,7 @@ END:VEVENT
self.assertEqual(event['sequence'], 3)
self.assertEqual(event['X-CUSTOM'], "check")
self.assertIsInstance(event['dtstamp'].dt, datetime.datetime)
+ self.assertEqual(event['class'], "CONFIDENTIAL")
def test_019_to_message_itip(self):
self.event = Event()