'Test that channel EOF messages are sent in the right format.'

def test_sendEOF(self):

    channel = TestChannel()
    self._openChannel(channel)
    self.conn.sendEOF(channel)
    self.assertEqual(self.transport.packets, [(connection.MSG_CHANNEL_EOF, '\x00\x00\x00\xff')])
    channel.localClosed = True
    self.conn.sendEOF(channel)
    self.assertEqual(self.transport.packets, [(connection.MSG_CHANNEL_EOF, '\x00\x00\x00\xff')])
