summaryrefslogtreecommitdiffstats
path: root/tests/unit/test-003-event.py
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-02-20 02:13:34 -0500
committerThomas Bruederli <bruederli@kolabsys.com>2014-02-20 02:13:34 -0500
commit312d3875fc04848e6086b61cc4165829c20a5c24 (patch)
tree06a64d5f42bb890ded68cf34928782515bd360e6 /tests/unit/test-003-event.py
parent439cea0c64e461546b57e572476fc1b20ac53d54 (diff)
downloadpykolab-312d3875fc04848e6086b61cc4165829c20a5c24.tar.gz
Copy sequence property from/to ical
Diffstat (limited to 'tests/unit/test-003-event.py')
-rw-r--r--tests/unit/test-003-event.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/test-003-event.py b/tests/unit/test-003-event.py
index 1da272a..59f131d 100644
--- a/tests/unit/test-003-event.py
+++ b/tests/unit/test-003-event.py
@@ -114,7 +114,7 @@ class TestEventXML(unittest.TestCase):
self.assertEqual(hasattr(_start,'tzinfo'), False)
self.assertEqual(self.event.get_start().__str__(), "2012-05-23")
- def test_018_from_ical_cutype(self):
+ def test_018_load_from_ical(self):
ical_str = """BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
@@ -126,12 +126,14 @@ ATTENDEE;CN="Doe, Jane";CUTYPE=INDIVIDUAL;PARTSTAT=ACCEPTED
;ROLE=REQ-PARTICIPANT;RSVP=FALSE:MAILTO:jane@doe.org
ATTENDEE;CUTYPE=RESOURCE;PARTSTAT=NEEDS-ACTION
;ROLE=OPTIONAL;RSVP=FALSE:MAILTO:max@imum.com
+SEQUENCE:2
END:VEVENT
END:VCALENDAR
"""
ical = icalendar.Calendar.from_ical(ical_str)
event = event_from_ical(ical.walk('VEVENT')[0].to_ical())
self.assertEqual(event.get_attendee_by_email("max@imum.com").get_cutype(), kolabformat.CutypeResource)
+ self.assertEqual(event.get_sequence(), 2)
if __name__ == '__main__':
unittest.main()