def testEvaluatorIsChief(self):
    cluster_spec = {
        "chief": ["127.0.0.1:1234"],
        "worker": ["127.0.0.1:8964", "127.0.0.1:2333"],
        "evaluator": ["127.0.0.1:2019"]
    }
    self.assertTrue(multi_worker_util.is_chief(cluster_spec, "evaluator", 0))