Commit 7f595c8d authored by Kevin Deldycke's avatar Kevin Deldycke

Declare file encoding to comply with PEP #0263 ( http://www.python.org/dev/peps/pep-0263/ ).

Compare dates only, not time.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12719 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1009268a
# -*- coding: UTF-8 -*-
##############################################################################
#
# Copyright (c) 2007 Nexedi SA and Contributors. All Rights Reserved.
......@@ -186,7 +188,7 @@ class TestBug(ERP5TypeTestCase):
"""
bug = sequence.get('bug')
bug.setStopDate(self.datetime - 10)
self.assertEquals(bug.getStopDate(), self.datetime - 10) # Check that datetime is fixed
self.assertEquals(bug.getStopDate().Date(), (self.datetime - 10).Date()) # Check that datetime is fixed
def stepCheckClosedDate(self, sequence=None, sequence_list=None, **kw):
......@@ -194,7 +196,7 @@ class TestBug(ERP5TypeTestCase):
Check that the closed date is set as today.
"""
bug = sequence.get('bug')
self.assertEquals(bug.getStopDate(), self.datetime)
self.assertEquals(bug.getStopDate().Date(), self.datetime.Date())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment