def test_receiveDebug(self):
        """
        Test that debug messages are received correctly.  See test_sendDebug.
        """
        self.proto.dispatchMessage(
            transport.MSG_DEBUG,
            b'\x01\x00\x00\x00\x04test\x00\x00\x00\x02en')
        self.proto.dispatchMessage(
            transport.MSG_DEBUG,
            b'\x00\x00\x00\x00\x06silent\x00\x00\x00\x02en')
        self.assertEqual(
            self.proto.debugs,
            [(True, b'test', b'en'), (False, b'silent', b'en')])

        Test that debug messages are received correctly.  See test_sendDebug.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_transport.py