def test_content_length_does_not_match_when_headers_end_stream(self):
        """
        If a content-length is specified and wrong, we must reject it.
        """
        self._content_length_template(
            b"20",
            b"",
            "headers",
            (
                ErrorCode(ErrorCode.H3_MESSAGE_ERROR),
                "content-length does not match data size",
            ),
        )

        If a content-length is specified and wrong, we must reject it.
        
tests/test_h3.py