'If an address type other than L{IPv4Address} and L{IPv6Address} is
returned by on address resolution, the endpoint ignores that address.'

def test_ignoreUnknownAddressTypes(self):

    self.mreactor = MemoryReactor()
    self.endpoint = endpoints.HostnameEndpoint(deterministicResolvingReactor(self.mreactor, ['1.2.3.4', object(), '1:2::3:4']), 'www.example.com', 80)
    clientFactory = None
    self.endpoint.connect(clientFactory)
    self.mreactor.advance(0.3)
    (host, port, factory, timeout, bindAddress) = self.mreactor.tcpClients[1]
    self.assertEqual(len(self.mreactor.tcpClients), 2)
    self.assertEqual(host, '1:2::3:4')
    self.assertEqual(port, 80)
