'The transport connected to the protocol has a C{writeSequence} method which
sends bytes to the input of the command executing on the SSH server.'

def test_writeSequence(self):

    self.realm.channelLookup['session'] = WorkingExecSession
    endpoint = self.create()
    factory = Factory()
    factory.protocol = Protocol
    connected = endpoint.connect(factory)
    (server, client, pump) = self.finishConnection()
    protocol = self.successResultOf(connected)
    dataReceived = self.record(server, protocol, 'dataReceived')
    protocol.transport.writeSequence(['hello,    world'])
    pump.pump()
    self.assertEqual('hello,    world', ''.join(dataReceived))
