def test_invalid_server_name():
    ips = ["1.1.1.1"]
    bad_server = "garbage.invalid"
    bw = setup_server()
    bw.server = bad_server
    try:
        bw.lookup_ips(ips)
    except __HOLE__ as e:
        print e
        assert str(e) == "Couldn't connect to %s:%s" % (bad_server, bw.port), e
    except Exception as e2:
        # we shouldn't receive other errors
        assert False, str(e2)
dataset/ETHPy150Open csirtfoundry/BulkWhois/tests/bulkwhois_tests.py/test_invalid_server_name