def test_content_length_that_is_negative_is_rejected(self):
        """
        A content-length that doesn't parse as an integer is bad.
        """
        self._content_length_template(
            b"-1",
            b"hello world",
            "data",
            (
                ErrorCode(ErrorCode.H3_MESSAGE_ERROR),
                "content-length is not a non-negative integer",
            ),
        )

        A content-length that doesn't parse as an integer is bad.
        
tests/test_h3.py