def test_truncatedPacket(self):
        """
        Test that when a short datagram is received, datagramReceived does
        not raise an exception while processing it.
        """
        self.proto.datagramReceived(
            b'', address.IPv4Address('UDP', '127.0.0.1', 12345))
        self.assertEqual(self.controller.messages, [])

        Test that when a short datagram is received, datagramReceived does
        not raise an exception while processing it.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_dns.py