summaryrefslogtreecommitdiffstats
path: root/tests/unit/test-003-event.py
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2015-03-10 06:17:26 -0400
committerThomas Bruederli <bruederli@kolabsys.com>2015-03-10 06:17:26 -0400
commite731c861ebcb52ef33296b53f2a72099a4ae5161 (patch)
tree2748234799bd567a68f7f323e83b479eb7d1dfa1 /tests/unit/test-003-event.py
parent694a8c0b2c4215c3c5a05022e7498aecf88da7ac (diff)
downloadpykolab-e731c861ebcb52ef33296b53f2a72099a4ae5161.tar.gz
Force RRULE UNTIL attribute to be a UTC date/time but also account for it to be a date-only value
Diffstat (limited to 'tests/unit/test-003-event.py')
-rw-r--r--tests/unit/test-003-event.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/test-003-event.py b/tests/unit/test-003-event.py
index f039ca1..4e14cd4 100644
--- a/tests/unit/test-003-event.py
+++ b/tests/unit/test-003-event.py
@@ -542,7 +542,7 @@ END:VEVENT
rrule.set_byday(['2WE','-1SU'])
rrule.setBymonth([2])
rrule.set_count(10)
- rrule.set_until(datetime.datetime(2014,7,23, 11,0,0, tzinfo=pytz.utc))
+ rrule.set_until(datetime.datetime(2014,7,23, 11,0,0, tzinfo=pytz.timezone("Europe/London")))
self.event.set_recurrence(rrule);
ical = icalendar.Calendar.from_ical(self.event.as_string_itip())
@@ -564,6 +564,7 @@ END:VEVENT
self.assertEqual(event['rrule']['BYMONTH'][0], 2)
self.assertEqual(event['rrule']['BYDAY'], ['2WE','-1SU'])
self.assertIsInstance(event['rrule']['UNTIL'][0], datetime.datetime)
+ self.assertEquals(event['rrule']['UNTIL'][0].tzinfo, pytz.utc)
def test_019_to_message_itip(self):
self.event = Event()