示例#1
0
def main():
    # Set up a domain to be deleted below.
    domain = setup_domain()

    # Delete the domain.
    delete_domain(domain["id"])

    # Try to delete the same domain again. Notice the response code 404.
    delete_domain(domain["id"])
示例#2
0
def main():
    # Set up a domain to be modified below.
    domain = setup_domain()

    updated_domain = update_domain(domain)

    # Delete it now.
    api('config/domain_management/domains/' + str(updated_domain['id']),
        'DELETE')
示例#3
0
def main():
    # Set up a domain to be modified below.
    domain = setup_domain()

    updated_domain = update_domain(domain)

    # Delete it now.
    api('config/domain_management/domains/' + str(updated_domain['id']),
        'DELETE')
示例#4
0
def main():
    # Set up a domain to be deleted below.
    domain = setup_domain()

    # Delete the domain.
    delete_domain(domain['id'])

    # Try to delete the same domain again. Notice the response code 404.
    delete_domain(domain['id'])