MCPcopy Create free account
hub / github.com/python-websockets/websockets / test_parse_too_long_value

Method test_parse_too_long_value

tests/test_http11.py:412–415  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

410 next(self.parse_headers())
411
412 def test_parse_too_long_value(self):
413 self.reader.feed_data(b"foo: bar\r\n" * 129 + b"\r\n")
414 with self.assertRaises(SecurityError):
415 next(self.parse_headers())
416
417 def test_parse_too_long_line(self):
418 # Header line contains 5 + 8186 + 2 = 8193 bytes.

Callers

nothing calls this directly

Calls 2

parse_headersMethod · 0.95
feed_dataMethod · 0.45

Tested by

no test coverage detected