Skip to content

Commit

Permalink
Added test_ajax_toggleActionsVisibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kroman0 committed Oct 16, 2013
1 parent b7d8b45 commit 4f5e2e7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions quintagroup/plonetabs/tests/test_controlpanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,25 @@ def test_ajax_addAction(self):
self.assertEquals(response['status_code'], 200)
self.assertEquals(response['status_message'], u"'action_id' action successfully added.")

def test_ajax_toggleActionsVisibility(self):
form = {
'category': 'site_actions',
'orig_id': 'contact',
'tabslist_visible': 'Set visibillity',
'visibility': 'false'
}
response = self.panel.manage_ajax_toggleActionsVisibility(form)
self.assertEquals(response, {
'status_code': 200,
'status_message': u"'contact' action is now invisible."
})
form['visibility'] = 'true'
response = self.panel.manage_ajax_toggleActionsVisibility(form)
self.assertEquals(response, {
'status_code': 200,
'status_message': u"'contact' action is now visible."
})

def test_redirect(self):
response = self.portal.REQUEST.RESPONSE
method = self.panel.redirect
Expand Down

0 comments on commit 4f5e2e7

Please sign in to comment.