def test_emptyMessage(self):
        """
        Test that a message which has been truncated causes an EOFError to
        be raised when it is parsed.
        """
        msg = dns.Message()
        self.assertRaises(EOFError, msg.fromStr, b'')

        Test that a message which has been truncated causes an EOFError to
        be raised when it is parsed.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_dns.py