'Test host address translation
Uses a custom Address Translator to map all ip back to one.
Validates AddressTranslator invocation by ensuring that only meta data associated with single
host is populated
@since 3.3
@jira_ticket PYTHON-69
@expected_result only one hosts\' metadata will be populated
@test_category metadata'

def test_address_translator_basic(self):

    lh_ad = LocalHostAdressTranslator({'127.0.0.1': '127.0.0.1', '127.0.0.2': '127.0.0.1', '127.0.0.3': '127.0.0.1'})
    c = Cluster(address_translator=lh_ad)
    c.connect()
    self.assertEqual(len(c.metadata.all_hosts()), 1)
    c.shutdown()
