

def test_can_delete_project(self):
    with user_generator(self.manager):
        self.manager.create_project('testproj', 'test1')
        self.assert_(self.manager.get_project('testproj'))
        self.manager.delete_project('testproj')
        projectlist = self.manager.get_projects()
        self.assert_((not filter((lambda p: (p.name == 'testproj')), projectlist)))

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