'Tests a custom action that returns an HttpResponse with 403 code.'

def test_custom_function_action_no_perm_response(self):

    action_data = {ACTION_CHECKBOX_NAME: [1], u'action': u'no_perm', u'index': 0}
    response = self.client.post(u'/test_admin/admin/admin_views/externalsubscriber/', action_data)
    self.assertEqual(response.status_code, 403)
    self.assertEqual(response.content, 'No    permission    to    perform    this    action')
