#NEWLINE# def test_connectDestination( self ) : #NEWLINE# #INDENT# '\n        L{MemoryReactor.connectTCP}, L{MemoryReactor.connectSSL}, and\n        L{MemoryReactor.connectUNIX} will return an L{IConnector} whose\n        C{getDestination} method returns an L{IAddress} with attributes which\n        reflect the values passed.\n        ' #NEWLINE# memoryReactor = MemoryReactor ( ) #NEWLINE# for connector in [ memoryReactor . connectTCP ( 'test.example.com' , 8321 , ClientFactory ( ) ) , memoryReactor . connectSSL ( 'test.example.com' , 8321 , ClientFactory ( ) , None ) ] : #NEWLINE# #INDENT# verifyObject ( IConnector , connector ) #NEWLINE# address = connector . getDestination ( ) #NEWLINE# verifyObject ( IAddress , address ) #NEWLINE# self . assertEquals ( address . host , 'test.example.com' ) #NEWLINE# self . assertEquals ( memoryReactor . port , 8321 ) #NEWLINE# #UNINDENT# connector = memoryReactor . connectUNIX ( '/fake/path' , ClientFactory ( ) ) #NEWLINE# verifyObject ( IConnector , connector ) #NEWLINE# address = connector . getDestination ( ) #NEWLINE# verifyObject ( IAddress , address ) #NEWLINE# self . assertEquals ( address . name , '/fake/path' )