

def test_can_remove_user_roles(self):
    with user_and_project_generator(self.manager) as (user, project):
        self.manager.add_role(user, 'sysadmin')
        self.assertTrue(self.manager.has_role(user, 'sysadmin'))
        self.manager.remove_role(user, 'sysadmin')
        self.assertFalse(self.manager.has_role(user, 'sysadmin'))

dataset/ETHPy150Open nii-cloud/dodai-compute/nova/tests/test_auth.py _AuthManagerBaseTestCase.test_can_remove_user_roles/original