def test_sendDebug(self):
        """
        Test that debug messages are sent correctly.  Payload::
            bool always display
            string debug message
            string language
        """
        self.proto.sendDebug(b"test", True, b'en')
        self.assertEqual(
            self.packets,
            [(transport.MSG_DEBUG,
              b"\x01\x00\x00\x00\x04test\x00\x00\x00\x02en")])

        Test that debug messages are sent correctly.  Payload::
            bool always display
            string debug message
            string language
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_transport.py