'L{MemoryReactor.connectTCP}, L{MemoryReactor.connectSSL}, and
L{MemoryReactor.connectUNIX} will return an L{IConnector} whose
C{getDestination} method returns an L{IAddress} with attributes which
reflect the values passed.'

def test_connectDestination(self):

    memoryReactor = MemoryReactor()
    for connector in [memoryReactor.connectTCP('test.example.com', 8321, ClientFactory()), memoryReactor.connectSSL('test.example.com', 8321, ClientFactory(), None)]:
        verifyObject(IConnector, connector)
        address = connector.getDestination()
        verifyObject(IAddress, address)
        self.assertEqual(address.host, 'test.example.com')
        self.assertEqual(address.port, 8321)
    connector = memoryReactor.connectUNIX('/fake/path', ClientFactory())
    verifyObject(IConnector, connector)
    address = connector.getDestination()
    verifyObject(IAddress, address)
    self.assertEqual(address.name, '/fake/path')
