def METHOD_NAME():
    # This test doesn't account for platform where localhost.localdomain isn't
    # the name ....
    test = [
        ({'hostname': 'localhost'}, (['localhost.localdomain', 'localhost'], True)),
        ({'hostname': 'remote'}, (['remote'], False)),
    ]
    for k, v in test:
        old = k.copy()
        expected_host, expected_r = v
        r = update_newhost_with_fqdn(k)
        assert expected_r == r, "Mismatch %r vs %r for %r" % (
            r, expected_r, old)
        assert k['hostname'] in expected_host, "Mismatch %r vs %r for %r" % (
            k['hostname'], expected_host, old)