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

Commit db0ec0a

Browse files
committed
DATA frames need streams.
1 parent 87fea93 commit db0ec0a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_hyper.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ def test_data_frame_parses_properly(self):
6868
assert f.flags == set(['END_STREAM'])
6969
assert f.data == b'testdata'
7070

71+
def test_data_frame_comes_on_a_stream(self):
72+
with pytest.raises(ValueError):
73+
DataFrame(0)
74+
7175

7276
class TestPriorityFrame(object):
7377
def test_priority_frame_has_no_flags(self):

0 commit comments

Comments
 (0)