[lang-ref] ( get_hostname_full ) ( python )

def test_get_hostname_full():
    # socket.getfqdn()
    fqdn = socket.getfqdn()  # may return short hostname if FQDN cannot be determined
    hostname_s = socket.gethostname()

    assert fqdn.startswith(hostname_s)