

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

dataset/ETHPy150Open dpkp/kafka-python/test/test_conn_legacy.py ConnTest.test_collect_hosts__ipv6/VarMisuse@18/47 `hosts`->`self`