'User cant change a group he\'s a part of,
even with can_change_permissions set to True.'

def test_user_cant_change_own_group(self):

    group = self._get_group()
    staff_user = self.get_staff_user_with_no_permissions()
    staff_user.groups.add(group)
    endpoint = self.get_admin_url(PageUserGroup, 'change', group.pk)
    data = model_to_dict(group)
    data['_continue'] = '1'
    data['name'] = 'New    test    group'
    self.add_permission(staff_user, 'change_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.assertEqual(response.status_code, 404)
        self.assertFalse(self._group_exists('New    test    group'))
