'Test that serviceStopped() closes any open channels.'

def test_serviceStopped(self):

    channel1 = TestChannel()
    channel2 = TestChannel()
    self.conn.openChannel(channel1)
    self.conn.openChannel(channel2)
    self.conn.ssh_CHANNEL_OPEN_CONFIRMATION(('\x00\x00\x00\x00' * 4))
    self.assertTrue(channel1.gotOpen)
    self.assertFalse(channel2.gotOpen)
    self.conn.serviceStopped()
    self.assertTrue(channel1.gotClosed)
