aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pathod.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2013-01-05 20:36:06 +1300
committerAldo Cortesi <aldo@nullcube.com>2013-01-05 20:36:06 +1300
commited7ef84557452bf43190b94a7b5c3393bb796178 (patch)
tree5e47832996de048260e5330e65bd4b9875b0fcf2 /test/test_pathod.py
parent5493925ea07aabc569d0f6cddffff49fda59383c (diff)
downloadmitmproxy-ed7ef84557452bf43190b94a7b5c3393bb796178.tar.gz
mitmproxy-ed7ef84557452bf43190b94a7b5c3393bb796178.tar.bz2
mitmproxy-ed7ef84557452bf43190b94a7b5c3393bb796178.zip
Implement and unit test not-after-connect option.
Diffstat (limited to 'test/test_pathod.py')
-rw-r--r--test/test_pathod.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py
index 0463fc55..665ef843 100644
--- a/test/test_pathod.py
+++ b/test/test_pathod.py
@@ -52,6 +52,14 @@ class TestNoApi(tutils.DaemonTests):
assert not "Log" in r.content
+class TestNotAfterConnect(tutils.DaemonTests):
+ ssl = False
+ not_after_connect = True
+ def test_connect(self):
+ v = self.pathoc(r"get:'http://foo.com/p/202':da", connect_to=("localhost", self.d.port))
+ assert v[1] == 202
+
+
class TestNohang(tutils.DaemonTests):
nohang = True
def test_nohang(self):