'Call ``POST /projects`` is_domain and check a domain is created.'

def test_create_is_domain_project_creates_domain(self):

    project_ref = unit.new_project_ref(domain_id=None, is_domain=True)
    r = self.post('/projects', body={'project': project_ref})
    self.assertValidProjectResponse(r)
    r = self.get(('/domains/%(domain_id)s' % {'domain_id': r.result['project']['id']}))
    self.assertValidDomainResponse(r)
    self.assertIsNotNone(r.result['domain'])
