'User cant delete a user created by another user,
even with can_change_permissions set to True.'

def test_user_cant_delete_others(self):

    admin = self.get_superuser()
    staff_user = self.get_staff_user_with_no_permissions()
    staff_user_2 = self.get_staff_page_user(created_by=admin)
    endpoint = self.get_admin_url(PageUser, 'delete', staff_user_2.pk)
    data = {'post': 'yes'}
    self.add_permission(staff_user, self._get_delete_perm())
    self.add_permission(staff_user, 'delete_pageuser')
    self.add_page_permission(staff_user, self._permissions_page, can_change_permissions=True)
    with self.login_user_context(staff_user):
        username = getattr(staff_user_2, staff_user_2.USERNAME_FIELD)
        response = self.client.post(endpoint, data)
        self.assertEqual(response.status_code, 404)
        self.assertTrue(self._user_exists(username))
