def testEvaluatorNotInCluster(self):
    cluster_spec = {
        "chief": ["127.0.0.1:1234"],
        "worker": ["127.0.0.1:8964", "127.0.0.1:2333"],
        "ps": ["127.0.0.1:1926", "127.0.0.1:3141"]
    }
    multi_worker_util._validate_cluster_spec(cluster_spec, "chief", 0)
    multi_worker_util._validate_cluster_spec(cluster_spec, "worker", 0)
    multi_worker_util._validate_cluster_spec(cluster_spec, "ps", 0)
    multi_worker_util._validate_cluster_spec(cluster_spec, "evaluator", 0)