Skip to content

Commit

Permalink
tests pass in winter
Browse files Browse the repository at this point in the history
  • Loading branch information
tdesvenain committed Oct 30, 2013
1 parent c5dd430 commit a8f8b08
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions plone/dexterity/tests/test_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ def test_item_dublincore(self):
rights='CC',
)

summer_timezone=i.effective_date.timezone()
self.assertEqual(i.title, u"Emperor Penguin")
self.assertEqual(i.Title(), 'Emperor Penguin')
self.assertEqual(i.description, u'One of the most magnificent birds.')
Expand All @@ -531,10 +532,10 @@ def test_item_dublincore(self):
self.assertEqual(i.Contributors(), ('admin',))
self.assertEqual(i.format, 'text/plain')
self.assertEqual(i.effective_date, DateTime('08/20/2010'))
self.assertEqual(i.EffectiveDate(zone='GMT+2')[:10], '2010-08-20')
self.assertEqual(i.EffectiveDate(zone=summer_timezone)[:10], '2010-08-20')
self.assertEqual(i.effective(), DateTime('08/20/2010'))
self.assertEqual(i.expiration_date, DateTime('07/09/2013'))
self.assertEqual(i.ExpirationDate(zone='GMT+2')[:10], '2013-07-09')
self.assertEqual(i.ExpirationDate(zone=summer_timezone)[:10], '2013-07-09')
self.assertEqual(i.expires(), DateTime('07/09/2013'))
self.assertEqual(i.language, 'de')
self.assertEqual(i.Language(), 'de')
Expand Down Expand Up @@ -563,11 +564,12 @@ def test_item_dublincore_date(self):
rights='CC',
)

summer_timezone=DateTime('2010/08/20').timezone()
self.assertEqual(i.effective_date, DateTime('08/20/2010'))
self.assertEqual(i.EffectiveDate(zone='GMT+2')[:10], '2010-08-20')
self.assertEqual(i.EffectiveDate(zone=summer_timezone)[:10], '2010-08-20')
self.assertEqual(i.effective(), DateTime('08/20/2010'))
self.assertEqual(i.expiration_date, DateTime('07/09/2013'))
self.assertEqual(i.ExpirationDate(zone='GMT+2')[:10], '2013-07-09')
self.assertEqual(i.ExpirationDate(zone=summer_timezone)[:10], '2013-07-09')
self.assertEqual(i.expires(), DateTime('07/09/2013'))
self.assertEqual(i.creation_date, i.created())
self.assertEqual(i.CreationDate()[:19], i.creation_date.ISO()[:19])
Expand Down

4 comments on commit a8f8b08

@mister-roboto
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TESTS FAILED
Mr.Roboto url : http://jenkins.plone.org/roboto/get_info?push=8738634520764f4bb9b46a968a716c2a
plone-4.3-python-2.6 [FAILURE]
plone-4.3-python-2.7 [FAILURE]
plone-5.0-python-2.7 [SUCCESS]

@mauritsvanrees
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Winter is coming, but tests are passing. ;-) Great, thanks!

@tdesvenain
Copy link
Member Author

@tdesvenain tdesvenain commented on a8f8b08 Oct 30, 2013 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tdesvenain
Copy link
Member Author

@tdesvenain tdesvenain commented on a8f8b08 Oct 30, 2013 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.