Commit 72f3ad0e authored by Romain Courteaud's avatar Romain Courteaud

Update testPlanningBox to follow last planning box modification.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19960 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d759d6f7
......@@ -115,12 +115,14 @@ class TestPlanningBox(ERP5TypeTestCase):
self.assertEquals(bloc.title , 'Title 0')
for info in bloc.info.values():
self.assertEquals(info.info,'Title 0')
self.assertEquals(info.link , '/%s/foo_module/0/0/view' % self.getPortal().getId())
self.assertEquals(info.link ,
'%s/foo_module/0/0/view' % self.getPortal().absolute_url())
# Check Parent Activities
parent = bloc.parent_activity
for info in parent.info.values():
self.assertEquals(info,'Title 0')
self.assertEquals(parent.link , '/%s/foo_module/0/0/view' % self.getPortal().getId())
self.assertEquals(parent.link ,
'/%s/foo_module/0/0' % self.getPortal().getId())
# XXX This test for Quantity is not complete, It should be improved.
self.assertEquals(parent.height , None)
self.assertEquals(parent.title,'Title 0')
......
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