summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-07-10 05:00:39 -0400
committerThomas Bruederli <bruederli@kolabsys.com>2014-07-10 05:00:39 -0400
commita44dcfb0690305fe42f3b374cef0fbced465d64d (patch)
tree85a0367f36af7af3a9a52c9c681199b7d70db171 /tests
parent214bde4656f3e3a10096ba54dfa2704f4e8de719 (diff)
downloadpykolab-a44dcfb0690305fe42f3b374cef0fbced465d64d.tar.gz
Fix all-day event date checks
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test-011-itip.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/test-011-itip.py b/tests/unit/test-011-itip.py
index abbaa92..a120fd2 100644
--- a/tests/unit/test-011-itip.py
+++ b/tests/unit/test-011-itip.py
@@ -357,6 +357,12 @@ class TestITip(unittest.TestCase):
event.set_uid(itip_event['uid'])
self.assertFalse(itip.check_event_conflict(event, itip_event), "No conflict for same UID")
+ allday = Event()
+ allday.set_start(datetime.date(2012,7,13))
+ allday.set_end(datetime.date(2012,7,13))
+
+ self.assertTrue(itip.check_event_conflict(allday, itip_event), "Conflicting allday event")
+
event2 = Event()
event2.set_start(datetime.datetime(2012,7,13, 10,0,0, tzinfo=pytz.timezone("US/Central")))
event2.set_end(datetime.datetime(2012,7,13, 11,0,0, tzinfo=pytz.timezone("US/Central")))