'User cant change his own user,
even with can_change_permissions set to True.'

def test_user_cant_change_self(self):

    admin = self.get_superuser()
    staff_user = self.get_staff_page_user(created_by=admin)
    endpoint = self.get_admin_url(PageUser, 'change', staff_user.pk)
    data = model_to_dict(staff_user, exclude=['date_joined'])
    data['_continue'] = '1'
    data['date_joined_0'] = '2016-06-21'
    data['date_joined_1'] = '15:00:00'
    self.add_permission(staff_user, 'change_pageuser')
    self.add_page_permission(staff_user, self._permissions_page, can_change_permissions=True)
    if (staff_user.USERNAME_FIELD != 'email'):
        username = 'perms-testuser2'
    else:
        username = 'perms-testuser+2@django-cms.org'
    data[staff_user.USERNAME_FIELD] = username
    with self.login_user_context(staff_user):
        response = self.client.post(endpoint, data)
        self.assertEqual(response.status_code, 404)
        self.assertFalse(self._user_exists(username))
