'Check the project that acts as a domain is updated.
Call ``PATCH /domains``.'

def test_update_domain_updates_is_domain_project(self):

    domain_ref = unit.new_domain_ref()
    r = self.post('/domains', body={'domain': domain_ref})
    self.assertValidDomainResponse(r, domain_ref)
    self.patch(('/domains/%s' % r.result['domain']['id']), body={'domain': {'enabled': False}})
    r = self.get(('/projects/%(project_id)s' % {'project_id': r.result['domain']['id']}))
    self.assertValidProjectResponse(r)
    self.assertFalse(r.result['project']['enabled'])
