Commit 5597cd6c authored by Ivan Tyagov's avatar Ivan Tyagov

Fix logical error which remained unnoticed due to rfc rounding of dates (up to...

Fix logical error which remained unnoticed due to rfc rounding of dates (up to a second precision). 


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22639 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b9d42921
No related merge requests found
......@@ -137,7 +137,7 @@ class TestRSS(ERP5TypeTestCase):
self.assertEquals(getSubnodeContent(item, 'link'), expected_link)
self.assertEquals(len(item.getElementsByTagName('pubDate')), 1)
# is date formatted correctly?
self.assertEquals(two.getCreationDate().rfc822(), getSubnodeContent(item, 'pubDate'))
self.assertEquals(one.getCreationDate().rfc822(), getSubnodeContent(item, 'pubDate'))
def test_02_renderRSS(self, quiet=0, run=run_all_test):
"""
......@@ -210,7 +210,7 @@ class TestRSS(ERP5TypeTestCase):
self.assertEquals(getSubnodeContent(item, 'link'), expected_link)
self.assertEquals(len(item.getElementsByTagName('pubDate')), 1)
# is date formatted correctly?
self.assertEquals(two.getCreationDate().rfc822(), getSubnodeContent(item, 'pubDate'))
self.assertEquals(one.getCreationDate().rfc822(), getSubnodeContent(item, 'pubDate'))
def test_suite():
suite = unittest.TestSuite()
......
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