Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 8f621a2

Browse files
committed
PRIORITY frames have a set body length.
1 parent 82c3e87 commit 8f621a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/test_hyper.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ def test_priority_frame_comes_on_a_stream(self):
100100
with pytest.raises(ValueError):
101101
PriorityFrame(0)
102102

103+
def test_priority_frame_must_have_body_length_four(self):
104+
f = PriorityFrame(1)
105+
with pytest.raises(ValueError):
106+
f.parse_body(b'\x01')
107+
103108
class TestRstStreamFrame(object):
104109
def test_rst_stream_frame_has_no_flags(self):
105110
f = RstStreamFrame(1)

0 commit comments

Comments
 (0)