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

Commit 3868215

Browse files
committed
Add decode_frame function to test_hyper.py.
1 parent afc62f9 commit 3868215

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/test_hyper.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
from io import BytesIO
2020

2121

22+
def decode_frame(frame_data):
23+
f, length = Frame.parse_frame_header(frame_data[:8])
24+
f.parse_body(frame_data[8:8 + length])
25+
assert 8 + length == len(frame_data)
26+
return f
27+
28+
2229
class TestGeneralFrameBehaviour(object):
2330
def test_base_frame_ignores_flags(self):
2431
f = Frame(0)

0 commit comments

Comments
 (0)