'Call ``GET /projects/{project_id}?parents_as_ids``.'

def test_get_project_with_parents_as_ids(self):

    projects = self._create_projects_hierarchy(hierarchy_size=2)
    r = self.get(('/projects/%(project_id)s?parents_as_ids' % {'project_id': projects[2]['project']['id']}))
    self.assertValidProjectResponse(r, projects[2]['project'])
    parents_as_ids = r.result['project']['parents']
    is_domain_project_id = projects[0]['project']['domain_id']
    expected_dict = {projects[1]['project']['id']: {projects[0]['project']['id']: {is_domain_project_id: None}}}
    self.assertDictEqual(expected_dict, parents_as_ids)
    r = self.get(('/projects/%(project_id)s?parents_as_ids' % {'project_id': projects[0]['project']['id']}))
    self.assertValidProjectResponse(r, projects[0]['project'])
    parents_as_ids = r.result['project']['parents']
    expected_dict = {is_domain_project_id: None}
    self.assertDictEqual(expected_dict, parents_as_ids)
    r = self.get(('/projects/%(project_id)s?parents_as_ids' % {'project_id': is_domain_project_id}))
    parents_as_ids = r.result['project']['parents']
    self.assertIsNone(parents_as_ids)
