Пример #1
0
def test_edit_host(web):
    try:
        web.add_host("test-edit-host", attributes={
            "ipaddress": "127.0.0.1",
        })

        web.edit_host("test-edit-host", attributes={"ipaddress": "127.10.0.1"})
    finally:
        web.delete_host("test-edit-host")
Пример #2
0
def test_edit_host(web):  # noqa: F811 # pylint: disable=redefined-outer-name
    try:
        web.add_host("test-edit-host", attributes={
            "ipaddress": "127.0.0.1",
        })

        web.edit_host("test-edit-host", attributes={"ipaddress": "127.10.0.1"})
    finally:
        web.delete_host("test-edit-host")