def connectedServerAndClient(ServerClass, ClientClass,<EOL>clientTransportWrapper=utils.FileWrapper,<EOL>serverTransportWrapper=utils.FileWrapper,<EOL>debug=False):
c = ClientClass()<EOL>s = ServerClass()<EOL>cio = StringIO()<EOL>sio = StringIO()<EOL>c.makeConnection(clientTransportWrapper(cio))<EOL>s.makeConnection(serverTransportWrapper(sio))<EOL>pump = IOPump(c, s, cio, sio, debug)<EOL>pump.flush()<EOL>return c, s, pump<EOL>
Returns a 3-tuple: (client, server, pump)