aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_websockets.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-04-24 15:31:14 +1200
committerAldo Cortesi <aldo@nullcube.com>2015-04-24 15:31:14 +1200
commit192fd1db7f233b71398c5255cbdebe1928768b55 (patch)
tree3a134ada227f00777cb9b05b5bf1cc102a3fc729 /test/test_websockets.py
parentdef93ea8cae69676a91b01e149e8a406fa03eacd (diff)
downloadmitmproxy-192fd1db7f233b71398c5255cbdebe1928768b55.tar.gz
mitmproxy-192fd1db7f233b71398c5255cbdebe1928768b55.tar.bz2
mitmproxy-192fd1db7f233b71398c5255cbdebe1928768b55.zip
websockets: include all header values in frame roundtrip
Diffstat (limited to 'test/test_websockets.py')
-rw-r--r--test/test_websockets.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_websockets.py b/test/test_websockets.py
index 215b3958..8ae18edd 100644
--- a/test/test_websockets.py
+++ b/test/test_websockets.py
@@ -202,6 +202,10 @@ class TestFrame:
f2 = websockets.Frame.from_file(cStringIO.StringIO(bytes))
assert f == f2
round("test")
+ round("test", fin=1)
+ round("test", rsv1=1)
+ round("test", opcode=websockets.OPCODE.PING)
+ round("test", masking_key="test")
def test_human_readable(self):
f = websockets.Frame()