#NEWLINE# def test_connectSSL( self ) : #NEWLINE# #INDENT# '\n        L{ClientCreator.connectSSL} calls C{reactor.connectSSL} with the host,\n        port, and context factory passed to it, and with a factory which will\n        construct the protocol passed to L{ClientCreator.__init__}.\n        ' #NEWLINE# def check( reactor , cc ) : #NEWLINE# #INDENT# expectedContextFactory = object ( ) #NEWLINE# cc . connectSSL ( 'example.com' , 1234 , expectedContextFactory , 4321 , ( '4.3.2.1' , 5678 ) ) #NEWLINE# ( host , port , factory , contextFactory , timeout , bindAddress ) = reactor . sslClients . pop ( ) #NEWLINE# self . assertEquals ( host , 'example.com' ) #NEWLINE# self . assertEquals ( port , 1234 ) #NEWLINE# self . assertIdentical ( contextFactory , expectedContextFactory ) #NEWLINE# self . assertEquals ( timeout , 4321 ) #NEWLINE# self . assertEquals ( bindAddress , ( '4.3.2.1' , 5678 ) ) #NEWLINE# return factory #NEWLINE# #UNINDENT# self . _basicConnectTest ( check )