← Về thư mục
tests/test_ws_frames.py
- _reader · function · L11-L12 — def _reader(data: bytes) -> io.BytesIO
- test_server_frame_length_ladder · function · L15-L22 — def test_server_frame_length_ladder()
- test_client_mask_roundtrip · function · L25-L30 — def test_client_mask_roundtrip()
- test_expect_mask_direction_enforced · function · L33-L39 — def test_expect_mask_direction_enforced()
- test_lenient_mode_accepts_both · function · L42-L46 — def test_lenient_mode_accepts_both()
- test_truncated_header_and_body · function · L49-L52 — def test_truncated_header_and_body()
- test_rsv_bits_rejected · function · L55-L58 — def test_rsv_bits_rejected()
- test_fragmented_frame_rejected · function · L61-L64 — def test_fragmented_frame_rejected()
- test_unknown_opcode_rejected · function · L67-L70 — def test_unknown_opcode_rejected()
- test_control_frame_over_125_rejected · function · L73-L76 — def test_control_frame_over_125_rejected(): # a close frame claiming a 126 extended length is illegal
- test_non_canonical_16bit_length_rejected · function · L79-L81 — def test_non_canonical_16bit_length_rejected()
- test_non_canonical_64bit_length_rejected · function · L84-L86 — def test_non_canonical_64bit_length_rejected()
- test_64bit_high_bit_rejected · function · L89-L91 — def test_64bit_high_bit_rejected()
- test_max_len_enforced · function · L94-L97 — def test_max_len_enforced()
- test_strict_mode_rejects_bad_utf8_text · function · L100-L107 — def test_strict_mode_rejects_bad_utf8_text()
- test_accept_matches_rfc_example · function · L110-L115 — def test_accept_matches_rfc_example(): # RFC 6455 §1.3 worked example
- test_frame_header_size · function · L118-L121 — def test_frame_header_size()
- test_roundtrip_all_length_classes · function · L125-L127 — def test_roundtrip_all_length_classes(n)