From 0a8a09958975626c137eb42525b52e8333ba6bb9 Mon Sep 17 00:00:00 2001 From: Ivan Tyagov <ivan@nexedi.com> Date: Wed, 24 Nov 2010 09:02:42 +0000 Subject: [PATCH] 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 --- product/ERP5/tests/testRSS.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5/tests/testRSS.py b/product/ERP5/tests/testRSS.py index 1b958e6795..de8f10c54a 100644 --- a/product/ERP5/tests/testRSS.py +++ b/product/ERP5/tests/testRSS.py @@ -120,7 +120,7 @@ class TestRSS(ERP5TypeTestCase): self.assertEquals(getSubnodeContent(item, 'title'), 'Two') self.assertEquals(getSubnodeContent(item, 'description'), 'Person Two') 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(len(item.getElementsByTagName('pubDate')), 1) # is date formatted correctly? @@ -130,7 +130,7 @@ class TestRSS(ERP5TypeTestCase): self.assertEquals(getSubnodeContent(item, 'title'), 'One') self.assertEquals(getSubnodeContent(item, 'description'), 'Person One') 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(len(item.getElementsByTagName('pubDate')), 1) # is date formatted correctly? -- 2.30.9