'L{IReactorUNIX.connectUNIX} can be used to connect a client to a server
started with L{IReactorUNIX.listenUNIX}.'

def test_dumber(self):

    filename = self.mktemp()
    serverFactory = MyServerFactory()
    serverConnMade = defer.Deferred()
    serverFactory.protocolConnectionMade = serverConnMade
    unixPort = reactor.listenUNIX(filename, serverFactory)
    self.addCleanup(unixPort.stopListening)
    clientFactory = MyClientFactory()
    clientConnMade = defer.Deferred()
    clientFactory.protocolConnectionMade = clientConnMade
    reactor.connectUNIX(filename, clientFactory)
    d = defer.gatherResults([serverConnMade, clientConnMade])
    def allConnected(args):
        (serverProtocol, clientProtocol) = args
        self.assertEqual(clientFactory.peerAddresses, [address.UNIXAddress(filename)])
        clientProtocol.transport.loseConnection()
        serverProtocol.transport.loseConnection()
    d.addCallback(allConnected)
    return d
