def test_truncatedMessageDecode(self):
        """
        The message instance created by decoding a truncated message is marked
        as truncated.
        """
        m = self.messageFactory()
        m.fromStr(MessageTruncated.bytes())

        self.assertEqual(m, self.messageFactory(**MessageTruncated.kwargs()))

        The message instance created by decoding a truncated message is marked
        as truncated.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_dns.py