'Test that channel window adjust messages cause bytes to be added
to the window.'

def test_adjustWindow(self):

    channel = TestChannel(localWindow=5)
    self._openChannel(channel)
    channel.localWindowLeft = 0
    self.conn.adjustWindow(channel, 1)
    self.assertEqual(channel.localWindowLeft, 1)
    channel.localClosed = True
    self.conn.adjustWindow(channel, 2)
    self.assertEqual(channel.localWindowLeft, 1)
    self.assertEqual(self.transport.packets, [(connection.MSG_CHANNEL_WINDOW_ADJUST, '\x00\x00\x00\xff\x00\x00\x00\x01')])
