def test_address_translator_with_mixed_nodes(self):
        adder_map = {'127.0.0.1': '127.0.0.1', '127.0.0.2': '127.0.0.3', '127.0.0.3': '127.0.0.2'}
        lh_ad = LocalHostAdressTranslator(adder_map)
        c = Cluster(address_translator=lh_ad)
        c.connect()
        for host in c.metadata.all_hosts():
            self.assertEqual(adder_map.get(str(host)), host.broadcast_address)
Test host address translation
dataset/ETHPy150Open datastax/python-driver/tests/integration/standard/test_cluster.py/TestAddressTranslation.test_address_translator_with_mixed_nodes