aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-08-26 21:04:13 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-08-26 21:04:13 +0200
commitdaf512ce936268b7b1095ca2991b69157f79c122 (patch)
treeaba44eafb8e37729e7b0b99b95e7c4441748d94a
parent3e3b59aa71a596fcddd14e72612067923a0d9b21 (diff)
downloadmitmproxy-daf512ce936268b7b1095ca2991b69157f79c122.tar.gz
mitmproxy-daf512ce936268b7b1095ca2991b69157f79c122.tar.bz2
mitmproxy-daf512ce936268b7b1095ca2991b69157f79c122.zip
http2: fix tests
-rw-r--r--test/http/http2/test_frames.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/test/http/http2/test_frames.py b/test/http/http2/test_frames.py
index 077f5bc2..5d5cb0ba 100644
--- a/test/http/http2/test_frames.py
+++ b/test/http/http2/test_frames.py
@@ -246,9 +246,9 @@ def test_priority_frame_to_bytes():
flags=(Frame.FLAG_NO_FLAGS),
stream_id=0x1234567,
exclusive=True,
- stream_dependency=0x7654321,
+ stream_dependency=0x0,
weight=42)
- assert_equal(f.to_bytes().encode('hex'), '000005020001234567876543212a')
+ assert_equal(f.to_bytes().encode('hex'), '000005020001234567800000002a')
f = PriorityFrame(
length=5,
@@ -266,13 +266,6 @@ def test_priority_frame_to_bytes():
stream_dependency=0x1234567)
tutils.raises(ValueError, f.to_bytes)
- f = PriorityFrame(
- length=5,
- flags=Frame.FLAG_NO_FLAGS,
- stream_id=0x1234567,
- stream_dependency=0x0)
- tutils.raises(ValueError, f.to_bytes)
-
def test_priority_frame_from_bytes():
f = Frame.from_file(hex_to_file('000005020001234567876543212a'))