aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_websockets.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-04-24 08:47:09 +1200
committerAldo Cortesi <aldo@nullcube.com>2015-04-24 08:47:09 +1200
commitbdd52fead339e634022a2251bb2bd85a924ca8d2 (patch)
tree887b567ea42731c068f464540b9c5eaf84a02a75 /test/test_websockets.py
parent42a87a1d8b3eeccfdd8e5e504f1cd4d90ae1dbfb (diff)
downloadmitmproxy-bdd52fead339e634022a2251bb2bd85a924ca8d2.tar.gz
mitmproxy-bdd52fead339e634022a2251bb2bd85a924ca8d2.tar.bz2
mitmproxy-bdd52fead339e634022a2251bb2bd85a924ca8d2.zip
websockets: extract frame header creation into a function
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 6f3b429d..17f7f728 100644
--- a/test/test_websockets.py
+++ b/test/test_websockets.py
@@ -3,6 +3,10 @@ import os
from nose.tools import raises
+def test_frame_header_bytes():
+ assert websockets.frame_header_bytes()
+
+
class WebSocketsEchoHandler(tcp.BaseHandler):
def __init__(self, connection, address, server):
super(WebSocketsEchoHandler, self).__init__(