def METHOD_NAME(setup_7_nodes):
    ws = websocket.WebSocket()
    try:
        ws.connect(f"ws://{LOCALHOST}:{setup_7_nodes['1']['api_port']}")
        ws.send("alice")
    except websocket.WebSocketBadStatusException as e:
        assert "401 Unauthorized" in str(e)
    else:
        assert False