summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-10-23 08:14:26 -0400
committerThomas Bruederli <bruederli@kolabsys.com>2014-10-23 08:14:26 -0400
commitb3e71834dfbdbe51c730580aa92dae3ea6797516 (patch)
tree2acbf086d00ac4fe42853e1ac0317f18849f5580 /tests
parent325441d8e67eee543a12390cc955718743455c9f (diff)
downloadpykolab-b3e71834dfbdbe51c730580aa92dae3ea6797516.tar.gz
Fix datetime objects for camparison
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/test_wallace/test_007_invitationpolicy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/functional/test_wallace/test_007_invitationpolicy.py b/tests/functional/test_wallace/test_007_invitationpolicy.py
index 4807313..d18e1f3 100644
--- a/tests/functional/test_wallace/test_007_invitationpolicy.py
+++ b/tests/functional/test_wallace/test_007_invitationpolicy.py
@@ -672,7 +672,7 @@ class TestWallaceInvitationpolicy(unittest.TestCase):
self.purge_mailbox(self.john['mailbox'])
# send update with new date and incremented sequence
- new_start = datetime.datetime(2014,8,15, 15,0,0, tzinfo=pytz.timezone("Europe/Berlin"))
+ new_start = pytz.timezone("Europe/Berlin").localize(datetime.datetime(2014,8,15, 15,0,0))
self.send_itip_update(self.jane['mail'], uid, new_start, summary="test", sequence=1)
response = self.check_message_received(self.itip_reply_subject % { 'summary':'test', 'status':participant_status_label('ACCEPTED') }, self.jane['mail'])
@@ -696,7 +696,7 @@ class TestWallaceInvitationpolicy(unittest.TestCase):
# send update with new but conflicting date and incremented sequence
self.create_calendar_event(datetime.datetime(2014,8,10, 10,30,0, tzinfo=pytz.timezone("Europe/Berlin")), user=self.jack)
- new_start = datetime.datetime(2014,8,10, 9,30,0, tzinfo=pytz.timezone("Europe/Berlin"))
+ new_start = pytz.timezone("Europe/Berlin").localize(datetime.datetime(2014,8,10, 9,30,0))
self.send_itip_update(self.jack['mail'], uid, new_start, summary="test (updated)", sequence=1)
response = self.check_message_received(self.itip_reply_subject % { 'summary':'test', 'status':participant_status_label('DECLINED') }, self.jack['mail'])