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

def test_connectTCP(self):

    def check(reactor, cc):
        cc.connectTCP('example.com', 1234, 4321, ('1.2.3.4', 9876))
        (host, port, factory, timeout, bindAddress) = reactor.tcpClients.pop()
        self.assertEqual(host, 'example.com')
        self.assertEqual(port, 1234)
        self.assertEqual(timeout, 4321)
        self.assertEqual(bindAddress, ('1.2.3.4', 9876))
        return factory
    self._basicConnectTest(check)
