'Call ``POST /projects``.'

def test_create_project_without_parent_id_and_without_domain_id(self):

    collection_url = ('/domains/%(domain_id)s/users/%(user_id)s/roles' % {'domain_id': self.domain_id, 'user_id': self.user['id']})
    member_url = ('%(collection_url)s/%(role_id)s' % {'collection_url': collection_url, 'role_id': self.role_id})
    self.put(member_url)
    auth = self.build_authentication_request(user_id=self.user['id'], password=self.user['password'], domain_id=self.domain_id)
    ref = unit.new_project_ref()
    r = self.post('/projects', auth=auth, body={'project': ref})
    ref['domain_id'] = self.domain['id']
    self.assertValidProjectResponse(r, ref)
