def test_content_length_does_not_match_data_length(self):
        """
        If a content-length is specified and wrong when data ends the stream,
        we must close.
        """
        self._content_length_template(
            b"20",
            b"hello world",
            "data",
            (
                ErrorCode(ErrorCode.H3_MESSAGE_ERROR),
                "content-length does not match data size",
            ),
        )

        If a content-length is specified and wrong when data ends the stream,
        we must close.
        
tests/test_h3.py