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

def test_endpointListenNonDefaultArgs(self):

    factory = object()
    mreactor = MemoryReactor()
    (ep, expectedArgs, ignoredHost) = self.createServerEndpoint(mreactor, factory, **self.listenArgs())
    ep.listen(factory)
    expectedServers = self.expectedServers(mreactor)
    self.assertEqual(expectedServers, [expectedArgs])
