'Set up a test project.'

def setup_test_project(self, **kwargs):

    if ('name' not in kwargs):
        kwargs['name'] = data_utils.rand_name('test_project')
    if ('description' not in kwargs):
        kwargs['description'] = data_utils.rand_name('test_description')
    project = self.projects_client.create_project(**kwargs)['project']
    self.addCleanup(test_utils.call_and_ignore_notfound_exc, self.projects_client.delete_project, project['id'])
    return project
