Skip to content

Commit

Permalink
Corrected tests on date comparison (avoid 1h shift)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgeulette committed Dec 16, 2015
1 parent c78dbea commit b558bea
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -11,7 +11,8 @@ New:

Fixes:

- *add item here*
- Corrected tests on date comparison (avoid 1h shift)
[sgeulette]


2.3.6 (2015-10-28)
6 changes: 3 additions & 3 deletions plone/dexterity/tests/test_content.py
Original file line number Diff line number Diff line change
@@ -679,7 +679,7 @@ def test_item_dublincore(self):
self.assertEqual(i.modification_date, i.creation_date)
self.assertEqual(i.modification_date, i.modified())
self.assertEqual(
i.ModificationDate()[:19], i.modification_date.ISO()[:19])
i.ModificationDate(zone=summer_timezone)[:19], i.modification_date.ISO()[:19])
self.assertEqual(i.Date(), i.EffectiveDate())
self.assertEqual(i.Identifier(), i.absolute_url())

@@ -721,7 +721,7 @@ def test_item_dublincore_date(self):
self.assertEqual(i.modification_date, i.creation_date)
self.assertEqual(i.modification_date, i.modified())
self.assertEqual(
i.ModificationDate()[:19], i.modification_date.ISO()[:19])
i.ModificationDate(zone=summer_timezone)[:19], i.modification_date.ISO()[:19])
self.assertEqual(i.Date(), i.EffectiveDate())

def test_item_dublincore_datetime(self):
@@ -771,7 +771,7 @@ def test_item_dublincore_datetime(self):
self.assertEqual(i.CreationDate(zone=summer_timezone), i.creation_date.ISO())
self.assertEqual(i.modification_date, i.creation_date)
self.assertEqual(i.modification_date, i.modified())
self.assertEqual(i.ModificationDate(), i.modification_date.ISO())
self.assertEqual(i.ModificationDate(zone=summer_timezone), i.modification_date.ISO())
self.assertEqual(i.Date(), i.EffectiveDate())

def test_item_notifyModified(self):

0 comments on commit b558bea

Please sign in to comment.