'L{ClientCreator.connectSSL} calls C{reactor.connectSSL} with the host,
port, and context factory passed to it, and with a factory which will
construct the protocol passed to L{ClientCreator.__init__}.'

def test_connectSSL(self):

    def check(reactor, cc):
        expectedContextFactory = object()
        cc.connectSSL('example.com', 1234, expectedContextFactory, 4321, ('4.3.2.1', 5678))
        (host, port, factory, contextFactory, timeout, bindAddress) = reactor.sslClients.pop()
        self.assertEqual(host, 'example.com')
        self.assertEqual(port, 1234)
        self.assertIs(contextFactory, expectedContextFactory)
        self.assertEqual(timeout, 4321)
        self.assertEqual(bindAddress, ('4.3.2.1', 5678))
        return factory
    self._basicConnectTest(check)
