'The endpoint should pass it\'s connectArgs parameter to the reactor\'s
listen methods.'

def test_endpointConnectNonDefaultArgs(self):

    factory = object()
    mreactor = MemoryReactor()
    (ep, expectedArgs, ignoredHost) = self.createClientEndpoint(mreactor, factory, **self.connectArgs())
    ep.connect(factory)
    expectedClients = self.expectedClients(mreactor)
    self.assertEqual(len(expectedClients), 1)
    self.assertConnectArgs(expectedClients[0], expectedArgs)
