

def test_can_remove_user_from_project(self):
    with user_generator(self.manager, name='test2') as user:
        with user_and_project_generator(self.manager) as (_user, project):
            self.manager.add_to_project(user, self)
            project = self.manager.get_project('testproj')
            self.assertTrue(self.manager.is_project_member(user, project))
            self.manager.remove_from_project(user, project)
            project = self.manager.get_project('testproj')
            self.assertFalse(self.manager.is_project_member(user, project))

dataset/ETHPy150Open nii-cloud/dodai-compute/nova/tests/test_auth.py _AuthManagerBaseTestCase.test_can_remove_user_from_project/VarMisuse@50/68 `project`->`self`