Commit 0a8a0995 authored by Ivan Tyagov's avatar Ivan Tyagov

absolute_url doesn't any longer include view but we use it (for the moment in RSS generation).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40579 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b95a2cc1
...@@ -120,7 +120,7 @@ class TestRSS(ERP5TypeTestCase): ...@@ -120,7 +120,7 @@ class TestRSS(ERP5TypeTestCase):
self.assertEquals(getSubnodeContent(item, 'title'), 'Two') self.assertEquals(getSubnodeContent(item, 'title'), 'Two')
self.assertEquals(getSubnodeContent(item, 'description'), 'Person Two') self.assertEquals(getSubnodeContent(item, 'description'), 'Person Two')
self.assertEquals(getSubnodeContent(item, 'author'), 'seb') self.assertEquals(getSubnodeContent(item, 'author'), 'seb')
expected_link = two.absolute_url() expected_link = '%s/view' %two.absolute_url()
self.assertEquals(getSubnodeContent(item, 'link'), expected_link) self.assertEquals(getSubnodeContent(item, 'link'), expected_link)
self.assertEquals(len(item.getElementsByTagName('pubDate')), 1) self.assertEquals(len(item.getElementsByTagName('pubDate')), 1)
# is date formatted correctly? # is date formatted correctly?
...@@ -130,7 +130,7 @@ class TestRSS(ERP5TypeTestCase): ...@@ -130,7 +130,7 @@ class TestRSS(ERP5TypeTestCase):
self.assertEquals(getSubnodeContent(item, 'title'), 'One') self.assertEquals(getSubnodeContent(item, 'title'), 'One')
self.assertEquals(getSubnodeContent(item, 'description'), 'Person One') self.assertEquals(getSubnodeContent(item, 'description'), 'Person One')
self.assertEquals(getSubnodeContent(item, 'author'), 'seb') self.assertEquals(getSubnodeContent(item, 'author'), 'seb')
expected_link = one.absolute_url() expected_link = '%s/view' %one.absolute_url()
self.assertEquals(getSubnodeContent(item, 'link'), expected_link) self.assertEquals(getSubnodeContent(item, 'link'), expected_link)
self.assertEquals(len(item.getElementsByTagName('pubDate')), 1) self.assertEquals(len(item.getElementsByTagName('pubDate')), 1)
# is date formatted correctly? # is date formatted correctly?
......
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