def test_bytes(self):
        """
        Test that bytes(SSHChannel) works, gives the channel name and
        local and remote windows at a glance..

        """
        self.assertEqual(
            self.channel.__bytes__(),
            b'<SSHChannel channel (lw 131072 rw 0)>')
        self.assertEqual(
            channel.SSHChannel(localWindow=1).__bytes__(),
            b'<SSHChannel None (lw 1 rw 0)>')

        Test that bytes(SSHChannel) works, gives the channel name and
        local and remote windows at a glance..

        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_channel.py