def test_cancelConnectTCP(self):
        def connect(cc):
            return cc.connectTCP('example.com', 1234)
        return self._cancelConnectTest(connect)
Custom handler works and returns correct number of nodes.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/internet/test/test_protocol.py/ClientCreatorTests.test_cancelConnectTCP--crossover with--dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/unit/test_objects.py/TestNodeObject.test_eager_nodes_handlers