Commit abd6559f authored by Julien Muchembled's avatar Julien Muchembled

Fix testQueryModule

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/portal_types@29274 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e9740772
...@@ -61,13 +61,13 @@ class TestQueryModule(ERP5TypeTestCase): ...@@ -61,13 +61,13 @@ class TestQueryModule(ERP5TypeTestCase):
action_list = self.portal.portal_actions.listFilteredActionsFor( action_list = self.portal.portal_actions.listFilteredActionsFor(
self.doc).get('object_action') self.doc).get('object_action')
self.assertEquals(1, len([ai for ai in self.assertEquals(1, len([ai for ai in
action_list if ai['title'] == 'Post a Query'])) action_list if ai['name'] == 'Post a Query']))
def test_jump_query_action_visible(self): def test_jump_query_action_visible(self):
action_list = self.portal.portal_actions.listFilteredActionsFor( action_list = self.portal.portal_actions.listFilteredActionsFor(
self.doc).get('object_jump') self.doc).get('object_jump')
self.assertEquals(1, len([ai for ai in self.assertEquals(1, len([ai for ai in
action_list if ai['title'] == 'Queries'])) action_list if ai['name'] == 'Queries']))
def test_post_query(self): def test_post_query(self):
self.doc.Base_postQuery(description='question ?') self.doc.Base_postQuery(description='question ?')
......
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