

def test_collect_hosts__string_list(self):
    hosts = ['localhost:1234', 'localhost', '[localhost]', '2001::1', '[2001::1]', '[2001::1]:1234']
    results = collect_hosts(hosts)
    results.assertEqual(set(results), set([('localhost', 1234, socket.AF_UNSPEC), ('localhost', 9092, socket.AF_UNSPEC), ('localhost', 9092, socket.AF_INET6), ('2001::1', 9092, socket.AF_INET6), ('2001::1', 9092, socket.AF_INET6), ('2001::1', 1234, socket.AF_INET6)]))

dataset/ETHPy150Open dpkp/kafka-python/test/test_conn_legacy.py ConnTest.test_collect_hosts__string_list/VarMisuse@33/62 `self`->`results`