aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pathod.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-06-05 12:04:40 +1200
committerAldo Cortesi <aldo@nullcube.com>2015-06-05 12:04:40 +1200
commitd23691f98c9e421a05db0519e8a19388db3a97be (patch)
treeb770857772806ed1c9cc99085638bdbaf833e055 /test/test_pathod.py
parent0a7da6a9b1b878cbfabf437759031f816161fab7 (diff)
downloadmitmproxy-d23691f98c9e421a05db0519e8a19388db3a97be.tar.gz
mitmproxy-d23691f98c9e421a05db0519e8a19388db3a97be.tar.bz2
mitmproxy-d23691f98c9e421a05db0519e8a19388db3a97be.zip
Improve websocket logging
Diffstat (limited to 'test/test_pathod.py')
-rw-r--r--test/test_pathod.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py
index c7ea47e3..d3013692 100644
--- a/test/test_pathod.py
+++ b/test/test_pathod.py
@@ -1,8 +1,7 @@
import cStringIO
from libpathod import pathod, version
from netlib import tcp, http
-import time
-import sys
+import pprint
import tutils
@@ -211,14 +210,10 @@ class CommonTests(tutils.DaemonTests):
assert r.status_code == 101
def test_websocket_frame(self):
- r = self.pathoc(["ws:/p/", "wf:b@10"], ws_read_limit=0)
- print >> sys.stderr, r
- print >> sys.stderr, self.d.log()
- assert self.d.last_log()["type"] == "wsframe"
-
- def test_websocket_reflected_frame(self):
- r = self.pathoc(["ws:/p/", "wf:f'wf'"], ws_read_limit=0)
- assert r
+ r = self.pathoc(["ws:/p/", "wf:f'wf'"], ws_read_limit=1)
+ #print r
+ #pprint.pprint(r)
+ #pprint.pprint(self.d.log())
class TestDaemon(CommonTests):