'Check a project that acts as a domain is created.
Call ``POST /domains``.'

def test_create_domain_creates_is_domain_project(self):

    domain_ref = unit.new_domain_ref()
    r = self.post('/domains', body={'domain': domain_ref})
    self.assertValidDomainResponse(r, domain_ref)
    r = self.get(('/projects/%(project_id)s' % {'project_id': r.result['domain']['id']}))
    self.assertValidProjectResponse(r)
    self.assertTrue(r.result['project']['is_domain'])
    self.assertIsNone(r.result['project']['parent_id'])
    self.assertIsNone(r.result['project']['domain_id'])
