Part of bzrlib.tests.test_smart_transport View In Hierarchy
If kind == 'socket', then io_object is a socket.
If kind == 'pipes', then io_object is a pair of file-like objects (read_from, write_to).