'Set up a test domain.'

def setup_test_domain(self):

    domain = self.create_domain()
    self.addCleanup(test_utils.call_and_ignore_notfound_exc, self.delete_domain, domain['id'])
    return domain
