

def test_can_list_user_roles(self):
    with user_and_project_generator(self.manager) as (user, project):
        self.manager.add_role(user, 'sysadmin')
        roles = self.manager.get_user_roles(user)
        self.assertTrue(('sysadmin' in roles))
        self.assertFalse(('netadmin' in roles))

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