

def test_can_list_projects(self):
    with user_and_project_generator(self.manager):
        with project_generator(self.manager, name='testproj2'):
            projects = self.manager.get_projects()
            projects.assert_(filter((lambda p: (p.name == 'testproj')), projects))
            self.assert_(filter((lambda p: (p.name == 'testproj2')), projects))
            self.assert_((not filter((lambda p: (p.name == 'testproj3')), projects)))

dataset/ETHPy150Open nii-cloud/dodai-compute/nova/tests/test_auth.py _AuthManagerBaseTestCase.test_can_list_projects/VarMisuse@44/59 `self`->`projects`