'Call ``PATCH /projects/{project_id}`` with is_domain.
The is_domain flag is immutable.'

def test_update_project_is_domain_not_allowed(self):

    project = unit.new_project_ref(domain_id=self.domain['id'])
    resp = self.post('/projects', body={'project': project})
    self.assertFalse(resp.result['project']['is_domain'])
    project['parent_id'] = resp.result['project']['parent_id']
    project['is_domain'] = True
    self.patch(('/projects/%(project_id)s' % {'project_id': resp.result['project']['id']}), body={'project': project}, expected_status=http_client.BAD_REQUEST)
