'User can add new groups if can_change_permissions
is set to True.'

def test_user_can_add_group(self):

    endpoint = self.get_admin_url(PageUserGroup, 'add')
    redirect_to = admin_reverse('index')
    staff_user = self.get_staff_user_with_no_permissions()
    data = self._get_group_data()
    self.add_permission(staff_user, 'add_pageusergroup')
    self.add_page_permission(staff_user, self._permissions_page, can_change_permissions=True)
    with self.login_user_context(staff_user):
        response = self.client.post(endpoint, data)
        self.assertRedirects(response, redirect_to)
        self.assertTrue(self._group_exists())
